Re: Another AppleScript-ObjC Bridge Question
Re: Another AppleScript-ObjC Bridge Question
- Subject: Re: Another AppleScript-ObjC Bridge Question
- From: Dave <email@hidden>
- Date: Tue, 10 Nov 2015 10:46:28 +0000
Thanks Shane,
Just to clarify, I don’t need a “_” at all, anywhere?
The reason I added them is because in uses them in the example at:
http://appscript.sourceforge.net/asoc.html <http://appscript.sourceforge.net/asoc.html>
Thanks a Lot and All the Best
Dave
> On 9 Nov 2015, at 22:47, Shane Stanley <email@hidden> wrote:
>
> 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
_______________________________________________
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