• 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: nil properties in Fetch Requests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil properties in Fetch Requests


  • Subject: Re: nil properties in Fetch Requests
  • From: Óscar Morales Vivó <email@hidden>
  • Date: Tue, 12 Jul 2005 11:29:25 -0400

Exactly what I wanted to know. Thanks!

Just a copule notes below:

On Jul 12, 2005, at 11:13 , mmalcolm crawford wrote:

If dateOfBirth or dateOfDeath is not set (that is, if it is nil in an instance), and $CALLERBIRTHDAY is non-nil, then the predicate does not match.

So just to be 100% sure: ANY predicate comparison of attributes where one or both of the operands is nil will always return false unless it's a direct comparison with nil?



If you want to include matches where the dateOf values may be nil, could you not use a predicate that allows for that?


isMale == 1 AND (dateOfBirth < $CALLERBIRTHDAY || dateOfBirth = nil) AND (dateOfDeath >= $CALLERBIRTHDAY || dateOfDeath = nil)

Which I believe will make the hole in my office wall bigger by repeatedly banging my head against it (again).


Thanks for your help.
_______________________________________________
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


  • Follow-Ups:
    • Re: nil properties in Fetch Requests
      • From: Charilaos Skiadas <email@hidden>
References: 
 >[FOLLOWUP] nil properties in Fetch Requests, part 2 (From: Óscar Morales Vivó <email@hidden>)
 >nil properties in Fetch Requests (From: Óscar Morales Vivó <email@hidden>)
 >Re: nil properties in Fetch Requests (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: nil properties in Fetch Requests
  • Next by Date: Re: Apple system icons: guidelines for use in Cocoa applications?
  • Previous by thread: Re: nil properties in Fetch Requests
  • Next by thread: Re: nil properties in Fetch Requests
  • Index(es):
    • Date
    • Thread