nil properties in Fetch Requests, part 2
nil properties in Fetch Requests, part 2
- Subject: nil properties in Fetch Requests, part 2
- From: Óscar Morales Vivó <email@hidden>
- Date: Sun, 10 Jul 2005 11:13:03 -0400
I've had time again to dedicate some time to Core Data, and have hit
another hitch. Let me explain:
I have a fetch request like the following:
isMale == 1 AND dateOfBirth < $CALLERBIRTHDAY AND dateOfDeath >=
$CALLERBIRTHDAY
Where isMale is a non-optional boolean property, and both dateOfBirth
and dateOfDeath are optional date properties.
I know I cannot instantiate $CALLERBIRTHDAY with nil. In those cases
where I find it, I can substitute it for [NSDate distantPast] and
[NSDate distantFuture] as appropriate.
However I don't know how and if the predicate will work if
dateOfBirth and/or dateOfDeath haven't been set for any of the
entities that go through it. Depending on the behavior I'll have to
pretty much forget about using fetch requests for my needs and go
through code, which kind of defeats the purpose of the fetch requests
in the first place.
Any knowledge or pointers to it will be appreciated.
Óscar Morales Vivó. _______________________________________________
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