Re: Another AppleScript-ObjC Bridge Question
Re: Another AppleScript-ObjC Bridge Question
- Subject: Re: Another AppleScript-ObjC Bridge Question
- From: Shane Stanley <email@hidden>
- Date: Tue, 10 Nov 2015 09:47:04 +1100
On 10 Nov 2015, at 1:47 AM, Dave <email@hidden> wrote:
>
> Got it working now, tt seems you don’t need the “_” after the name for init?
>
> Are the rules for when you need a “_” or not documented anywhere?
You don't need -- and in fact cannot use -- an underscore anywhere. The doThis:withThat: interleaved syntax was introduced to AppleScript in 10.9; before that, you would use doThis_andThat_() (which is what happens under the hood, and can still be used). But never an underscore where there is no parameter.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden