Search found 7 matches

by Totusoft
Fri Sep 06, 2013 5:27 pm
Forum: Coding Questions
Topic: Invoking the default browser in Linux.
Replies: 2
Views: 1615

Re: Invoking the default browser in Linux.

I use

RunProgram("xdg-open","http://www.purebasic.com","")

-Pete
by Totusoft
Wed Jul 03, 2013 3:08 am
Forum: Mac OSX
Topic: Transferring files while bypassing the UBC
Replies: 4
Views: 1649

Re: Transferring files while bypassing the UBC

Thanks Wilbert. Your example helped a lot! I worked it into my routine and testing is exactly what I was hoping to be able to do.

-Pete
by Totusoft
Tue Jul 02, 2013 4:58 pm
Forum: Mac OSX
Topic: Transferring files while bypassing the UBC
Replies: 4
Views: 1649

Re: Transferring files while bypassing the UBC

Thanks for your response Wilbert. The UBC is the Unified Buffer Cache. All file transfers (local, USB, etc.) goes through this on the Mac. For instance, if you copy a file to a USB drive, it may take many seconds to minutes. If you read it back again, it takes less than a second because it's cached ...
by Totusoft
Tue Jul 02, 2013 3:23 pm
Forum: Mac OSX
Topic: Transferring files while bypassing the UBC
Replies: 4
Views: 1649

Transferring files while bypassing the UBC

I am trying to figure out the best way to do some file transfers while bypassing the UBC. I cannot find a way to do this with Purebasic built in commands or Cocoa, but am learning that it can be done using fcntl.h included with XCode. Is fcntl.h something that can be used in Purebasic (ie, ImportC ...
by Totusoft
Tue May 28, 2013 3:31 am
Forum: Mac OSX
Topic: Displaying rtf string in editor gadget
Replies: 4
Views: 2083

Re: Displaying rtf string in editor gadget

Your routine worked great! Thanks Wilbert. I'm coming from Windows API, and trying to catch onto Cocoa Methods. I see I still have a long ways to go - because I was way off ;)

-Pete
by Totusoft
Sat May 25, 2013 4:22 am
Forum: Mac OSX
Topic: Displaying rtf string in editor gadget
Replies: 4
Views: 2083

Re: Displaying rtf string in editor gadget

Wilbert,

Thank you for this example! I am gone for the weekend, but can't wait to try it on Monday.

-Pete
by Totusoft
Fri May 24, 2013 5:08 am
Forum: Mac OSX
Topic: Displaying rtf string in editor gadget
Replies: 4
Views: 2083

Displaying rtf string in editor gadget

I'm trying to display some rtf data that is in a string into a editor gadget. I've tried "Loading a rtf file" by Wilbert - (just to test getting some rtf data to display correctly). That works great displaying rtf from a file. I played around with that routine trying to use "initWithRTF:" instead. I ...