Re: How To retrieve the Relationsships from an entity in Core Data
Re: How To retrieve the Relationsships from an entity in Core Data
- Subject: Re: How To retrieve the Relationsships from an entity in Core Data
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 16 Dec 2005 00:12:41 -0800
On Dec 15, 2005, at 11:41 PM, Janakiram wrote:
[aRequest setPredicate:[NSPredicate predicateWithFormat:@"salary
>= %f and departments.DeptID == %@ ",10000.0,2]]; // where dept
id is 2.
One other issue: is there any reason why you're using the department
ID attribute, instead of just the object?
[NSPredicate predicateWithFormat:@"(salary >= %f) and (ANY
departments == %@)",
10000.0, selectedDepartment]
mmalc
_______________________________________________
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