NSExpression
NSExpression
- Subject: NSExpression
- From: Chris <email@hidden>
- Date: Sat, 28 Jun 2008 17:13:37 +1000
NSExpression defines this method:
+ (NSExpression *)expressionForFunction:(NSString *)name arguments:
(NSArray *)parameters
and the doco provides this example:
[NSExpression expressionForFunction:(@selector(random)) arguments:nil];
Isn't that wrong? Can you really pass a selector to a NSString
argument? The compiler is complaining, and the program crashes when I
attempt it.
_______________________________________________
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