Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: seemingly simple Core Data fetch question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: seemingly simple Core Data fetch question



>    @"(myCompanyCar == NIL) AND department == <a specific department>".

You are headed down the right path:

[NSPredicate predicateWithFormat: @"myCompanyCar == NIL AND department ==
%@", theDepartment];

Or

[NSPredicate predicateWithFormat: @"self IN %@ AND myCompanyCar == NIL",
[theDepartment employees]];

Conor
http://www.bruji.com/



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.