Resource for Cocoa Object Syntax in AS?
Resource for Cocoa Object Syntax in AS?
- Subject: Resource for Cocoa Object Syntax in AS?
- From: Alex Hall <email@hidden>
- Date: Wed, 11 Mar 2015 15:31:22 -0400
How do you all know how to do all this Cocoa syntax? Is there a document I'm missing? I've found the release notes that tell you how to include libraries and that you *can* use Cocoa objects, but nothing beyond that. I know ObjC pretty well, but how do you know to go from NSString* str=[[NSString alloc] initWithFormat:@"Hello World"]; to set str to current application's NSString's alloc()'s initWithFormat:"Hello World" What's the rule for multiple arguments to a Cocoa function (commas or no)? What about pointers, like when an initializer needs a pointer to an error variable (I'm trying to work with NSRegularExpression)? I'll take specific answers if anyone happens to know them, but what I'm really after is a resource I can use to "translate" between ObjC and AppleScript so I can know the whole story, and so I can stop bugging you all every time I'm trying to work with some new part of the Cocoa frameworks. :) Thanks, as always, for any pointers or links.
--
Have a great day, Alex Hall
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden