Re: Predicate help needed
Re: Predicate help needed
- Subject: Re: Predicate help needed
- From: Brad Bumgarner <email@hidden>
- Date: Sat, 15 Jul 2006 22:20:37 -0600
Thank your for your help Adam. I'll try this on Monday.
On Jul 15, 2006, at 10:10 PM, Adam Knight wrote:
You'll want to filter by a predicate resembling this one:
NSPredicate* predicate = [NSPredicate
predicateWithFormat:@"(firstName != '') && (lastName != '')"];
NSArray* filteredArray = [[yourSet allObjects]
filteredArrayUsingPredicate:predicate];
And you now have an array of objects that match the conditions.
Yay. :)
--
Adam Knight
If you're not going to stop and appreciate the scenery, you're not
going to
enjoy Myst. The same thing applies on the Mac as well. -- Rand
Miller
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden