Re: Resource for Cocoa Object Syntax in AS?
Re: Resource for Cocoa Object Syntax in AS?
- Subject: Re: Resource for Cocoa Object Syntax in AS?
- From: Shane Stanley <email@hidden>
- Date: Thu, 12 Mar 2015 09:25:55 +1100
On 12 Mar 2015, at 6:31 am, Alex Hall <email@hidden> wrote:
What's the rule for multiple arguments to a Cocoa function (commas or no)?
Commas, although in practice you're limited in what functions you can use because of the limited range of types you can pass. What about pointers, like when an initializer needs a pointer to an error variable (I'm trying to work with NSRegularExpression)?
set {theNSRegularExpression, theError} to current application's NSRegularExpression's regularExpressionWithPattern:"(?m)^(^[[a-z][A-Z][0-9]]+)" options:0 |error|:(reference)
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. :)
I thought you'd never ask ;-)
|
_______________________________________________
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