Re: NSPredicate and Arrays
Re: NSPredicate and Arrays
- Subject: Re: NSPredicate and Arrays
- From: Keary Suska <email@hidden>
- Date: Mon, 31 Mar 2008 14:43:12 -0600
- Thread-topic: NSPredicate and Arrays
on 3/31/08 1:41 PM, email@hidden purportedly said:
> ArrayOfFoos:
> Foo: (Custom Object)
> Bars: (NSArray *) Bar: (Custom Object)
> Baz = 1 (int Property on custom object)
> Bar:
> Baz = 3
> ...
> Foo: Bars:
> Bar:
> Baz = 2
> Bar:
> Baz = 1
> ...
> ...
>
> and
> So what I want to do is pull out all Foos who have a baz == 1.
How about @"ALL Bars.baz = 1" ? Have you read the Predicate Programming
Guide
<http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predic
ates.html> ?
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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