Page 1 of 1
AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Fri May 06, 2011 1:07 pm
by wilbert
Since I'm not very active at using PureBasic lately, I'm posting the XCode 3.2.6 source code of my AppleScript wrapper library.
http://www.w73.nl/pb/PBCocoa_AppleScript.zip
The paths in the "build.command" in the PBUserlib subdirectory need to be changed depending on where the files are located.
It's not much code but hopefully it might help others to create their own OSX x86 user libraries.
Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Fri May 06, 2011 5:22 pm
by J. Baker
Thanks wilbert! Will check it out.

Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Thu May 19, 2011 5:06 pm
by jesperbrannmark
Hi Wilbert.
I really like the Applescript Wrapper a lot - thanks

I am all fresh to Xcode, and trying best I can there.
Could you maybe write a short thing about how you do when you use a Xcode function exported as a userlib? Like a really small tutorial if anyone else decide to use xcode in their pb projects?
Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Thu May 19, 2011 6:19 pm
by wilbert
I'm not sure what you are exactly asking.
When the source code is compiled, it creates a .a file that is used together with a .desc file to build the actual userlib.
The functions mentioned in the .desc file refer to the functions in the source code except that in the source code the functions are preceded by the PB_ prefix.
Objective-C itself isn't very complicated. Most important for me was to get used to the [ ] brackets to send a message to an object.
Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Thu Jun 16, 2011 4:36 pm
by jesperbrannmark
(this is a general request... i dont know how to do this and maybe someone else knows)
Would it be possible to make this userlibrary run "threadsafe" in any way? I really would benefit from it....
Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Fri Jun 17, 2011 5:18 am
by wilbert
As far as I know, if you download the zip archive with the source code, the libPBCocoa_x86 file in the PBUserlib folder should be threadsafe.
It's an updated version of the first version I posted without the source code.
Re: AppleScript Wrapper [XCode 3.2.6 Source code]
Posted: Fri Jun 17, 2011 12:33 pm
by jesperbrannmark