Re: Easy Fetched Property question.
Re: Easy Fetched Property question.
- Subject: Re: Easy Fetched Property question.
- From: Charilaos Skiadas <email@hidden>
- Date: Mon, 25 Jul 2005 11:34:38 -0500
On Jul 25, 2005, at 9:00 AM, Óscar Morales Vivó wrote:
Or at least I hope it is easy ;o)
I have an entity "Person" with a boolean property "isMale"
I want to have a fetched property which will return me all "Person"
objects which comply with the following two conditions:
- have a certain value of isMale. This one's easily set in the
predicate editor.
- Are not the same object as $FETCH_SOURCE. This one I'm not sure
how to set it in the predicate, since it allows one to choose any
of the entity's properties but not the object itself.
I think the literal SELF is what you are looking for here, as
described in:
http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/
Articles/pSyntax.html#//apple_ref/doc/uid/TP40001795
If I have not misunderstood what you are trying to do.
I might have missed something really obvious, but that's no excuse
for not being nice and helping ;o)
Thanks in advance for your help:
Óscar Morales Vivó. _______________________________________________
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