• 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: [Core Data - Newbie] predicateWithValue: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Core Data - Newbie] predicateWithValue: ?


  • Subject: Re: [Core Data - Newbie] predicateWithValue: ?
  • From: Charilaos Skiadas <email@hidden>
  • Date: Tue, 2 Aug 2005 09:55:13 -0500


On Aug 2, 2005, at 9:31 AM, Charles Haron wrote:

Hello All,

In what kind of circumstances would one want to use predicateWithValue: ?

First of all, this is not necessarily a Core Data question. NSPredicate is not part of Core Data.


Second, what is weird about it? Suppose you have a Boolean value, maybe defined through a check-box in the UI, and you also have some predicate that does something really cool and complicated, but you want it to only be used when the box is not checked, and otherwise you want everything to be always YES. Then you could OR-combine your wonderful predicate with a predicateWithValue: given by that check-box.

Just off the top of my head, I'm sure there are other uses.
Charles

Haris


_______________________________________________ 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: 
 >[Core Data - Newbie] predicateWithValue: ? (From: Charles Haron <email@hidden>)

  • Prev by Date: [Core Data - Newbie] predicateWithValue: ?
  • Next by Date: Need CVS Advice
  • Previous by thread: [Core Data - Newbie] predicateWithValue: ?
  • Next by thread: Need CVS Advice
  • Index(es):
    • Date
    • Thread