• 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
NSExpression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSExpression
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Why aren't my bindings firing?
  • Next by Date: Checking availability of host/website
  • Previous by thread: Re: switching content views
  • Next by thread: Re: NSExpression
  • Index(es):
    • Date
    • Thread