• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another AppleScript-ObjC Bridge Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Another AppleScript-ObjC Bridge Question
      • From: Shane Stanley <email@hidden>
References: 
 >Re: AppleScript-ObjC Bridge Question (From: Dave <email@hidden>)
 >Re: AppleScript-ObjC Bridge Question (From: Shane Stanley <email@hidden>)
 >Another AppleScript-ObjC Bridge Question (From: Dave <email@hidden>)
 >Re: Another AppleScript-ObjC Bridge Question (From: Dave <email@hidden>)
 >Re: Another AppleScript-ObjC Bridge Question (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl's sizing behaviour
  • Next by Date: Re: Another AppleScript-ObjC Bridge Question
  • Previous by thread: Re: Another AppleScript-ObjC Bridge Question
  • Next by thread: Re: Another AppleScript-ObjC Bridge Question
  • Index(es):
    • Date
    • Thread