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

Re: NSExpression


  • Subject: Re: NSExpression
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 29 Jun 2008 01:32:49 -0700


On Jun 28, 2008, at 10:35 PM, Chris wrote:
NSExpression * ex = [NSExpression expressionForFunction: [NSExpression expressionForConstantValue:@"BAR"] selectorName:@"length" arguments:nil];
NSPredicate * predicate = [NSCompoundPredicate
andPredicateWithSubpredicates:[NSArray arrayWithObject: ex]];
[predicate evaluateWithObject:@"FOO" substitutionVariables:nil];


What are you trying to achieve?
ex is not a predicate, so you're only supplying one -- incorrect -- argument to create an AND predicate. It's not clear what role "FOO" plays in the third line.


mmalc

_______________________________________________

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


References: 
 >NSExpression (From: Chris <email@hidden>)
 >Re: NSExpression (From: Shawn Erickson <email@hidden>)
 >Re: NSExpression (From: Chris <email@hidden>)

  • Prev by Date: Re: NSURLConnection vs CF and other ideas
  • Next by Date: Re: NSExpression
  • Previous by thread: Re: NSExpression
  • Next by thread: Re: NSExpression
  • Index(es):
    • Date
    • Thread