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. 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.
--Chris Nebel AppleScript Engineering |