• 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: NSPredicate/NSExpression - can they solve this Core Data problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicate/NSExpression - can they solve this Core Data problem?


  • Subject: Re: NSPredicate/NSExpression - can they solve this Core Data problem?
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 02 Apr 2010 15:50:25 -0600

Is the use of SUBQUERY() documented anywhere?  The only mention I've seen of it is in the reserved keywords section of the Predicate Format String Syntax guide.

Dave

On Apr 2, 2010, at 3:42 PM, Ben Trumbull wrote:

> 	NSComparisonPredicate* exprPred = (NSComparisonPredicate*)[NSPredicate predicateWithFormat:@"SUBQUERY(self, $key, %@.$key != nil) == 0", obj];
> 	NSExpression* expr = [exprPred leftExpression];
> 	NSLog(@"expression subquery results = %@", [expr expressionValueWithObject:keys context:nil]);

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >re: NSPredicate/NSExpression - can they solve this Core Data problem? (From: Ben Trumbull <email@hidden>)
 >Re: NSPredicate/NSExpression - can they solve this Core Data problem? (From: David Hoerl <email@hidden>)
 >Re: NSPredicate/NSExpression - can they solve this Core Data problem? (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: NSPredicate/NSExpression - can they solve this Core Data problem?
  • Next by Date: Re: C typedef for NS ptrs?
  • Previous by thread: Re: NSPredicate/NSExpression - can they solve this Core Data problem?
  • Next by thread: MutableArray losing contents
  • Index(es):
    • Date
    • Thread