Re: Updating EOObjects/Selecting EOObjects
Re: Updating EOObjects/Selecting EOObjects
- Subject: Re: Updating EOObjects/Selecting EOObjects
- From: LD <email@hidden>
- Date: Tue, 23 Aug 2005 12:57:18 +1000
Hi there,
On 23/08/2005, at 11:29 AM, Jonathan Miller wrote:
I know understand addObjectToBothSides... and removeObject ...
:-)
but what would you use to construct a qualifier over a relationship
when selecting objects?
EOQualifier will construct a qualifier based on the criteria you
specify.
e.g.,
NSMutableArray args = new NSMutableArray();
args.addObject( "firstName" );
args.addObject( someObject.name() );
args.addObject( "lastName" );
args.addObject( filteredFamily.lastName() );
EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("%s
= %@ AND %s != %@", args);
Constructs:
------------- EOAndQualifier --------------
| |
EOKeyValueQualifier EOKeyValueQualifier
with regards,
--
LD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden