• 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: call method from objective c in an applescript class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call method from objective c in an applescript class


  • Subject: Re: call method from objective c in an applescript class
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 30 Aug 2013 15:17:05 -0700

On Aug 19, 2013, at 1:30 PM, Alex Zavatone <email@hidden> wrote:

> On Aug 16, 2013, at 3:14 AM, Shane Stanley <email@hidden> wrote:
>
>> On 16/08/2013, at 12:38 PM, Christopher Nebel <email@hidden> wrote:
>>
>>> On Aug 14, 2013, at 4:24 PM, Shane Stanley <email@hidden> wrote:
>>>
>>>> On 15/08/2013, at 5:37 AM, droom.dp <email@hidden> wrote:
>>>>
>>>>> 	on hLogger__(myLogList,myLogCounter)
>>>>
>>>>> [NSClassFromString(@"myAppLog") hNewLogger:myLogList:myLogCounter];
>>>>
>>>> They don't match. If you're going to call it from Objective-C, you should probably make it a "proper" method name rather than using consecutive underscores.
>>>
>>> Actually, they do.
>>
>> Actually, they don't -- one is -hLogger:: and the other is -hNewLogger:: -- that was my real point. I was just suggesting that it might be nice to make it a bit more in keeping with convention at the same time.
>>
>>> Little-known fact, but the identifier before the second-and-later colons can be empty, so, for instance, this is a perfectly legal selector declaration:
>>>
>>> 	- (void) methodWithThreeParameters:(int)a :(int)b :(int)c;
>>>
>>> ...and is callable like this:
>>>
>>> 	[someObject methodWithThreeParameters:1 :2 :3];
>>>
>>> Of course, it's considered definitely odd and possibly in poor taste to do this, since the whole point of interleaved parameters is to be self-documenting.
>>
>> FWIW, I believe I saw it somewhere in an old system .h file.
>
> Think that's how NSArray can take a non fixed set of params on initWithObjects:.

No, that's varargs, which is unrelated.


--Chris N.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >call method from objective c in an applescript class (From: "droom.dp" <email@hidden>)
 >Re: call method from objective c in an applescript class (From: Shane Stanley <email@hidden>)
 >Re: call method from objective c in an applescript class (From: Christopher Nebel <email@hidden>)
 >Re: call method from objective c in an applescript class (From: Shane Stanley <email@hidden>)
 >Re: call method from objective c in an applescript class (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: call method from objective c in an applescript class
  • Previous by thread: Re: call method from objective c in an applescript class
  • Next by thread: Re: call method from objective c in an applescript class
  • Index(es):
    • Date
    • Thread