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

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
References: 
 >Predicate help needed (From: Brad Bumgarner <email@hidden>)
 >Re: Predicate help needed (From: Adam Knight <email@hidden>)

  • Prev by Date: Re: Predicate help needed
  • Next by Date: Re: NSPipe / NSTask ls -> Array
  • Previous by thread: Re: Predicate help needed
  • Next by thread: Spotlight Importer Not Found in App Bundle
  • Index(es):
    • Date
    • Thread