Re: nil properties in Fetch Requests
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