Re: call method from objective c in an applescript class
Re: call method from objective c in an applescript class
- Subject: Re: call method from objective c in an applescript class
- From: Shane Stanley <email@hidden>
- Date: Fri, 16 Aug 2013 17:14:45 +1000
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.
|
_______________________________________________
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