|Jun 7, 2009, 10:10 AM||#1|
Using ANY with multiple tests on a single object in an NSPredicate
I have an NSPredicate to process a managed object with several children objects and I want to test multiple properties of each individual child object and test whether any objects exist with both properties.
i.e. I want to make the following code parsable by NSPredicate:
ANY subfeat CONTAINS (feat.miscUse==\"Conscious for Negative HP\" AND active == 1))
Another way of looking at this problem with the "Joins" example here would be to get every employee whose name starts with Matt and with any directreport.paygrade that is less than 7 and is also directreport.important.
Last edited by Eraserhead; Jun 7, 2009 at 10:22 AM. Reason: Merge
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Multiple Names for a single iPhone contact?||razzydazzle99||iPhone||6||Feb 11, 2013 08:48 AM|
|Multiple choice tests, program for creating?||Kyle12||Mac Applications and Mac App Store||0||Dec 10, 2012 08:08 PM|
|SuperDuper copy single/multiple folders only?||Orlandoech||Mac Applications and Mac App Store||1||Aug 17, 2012 03:50 AM|
|Multiple OSs on a single USB Drive||Achiever||OS X 10.8 Mountain Lion||12||Aug 2, 2012 03:37 PM|
|MAS - Using a single update for multiple computers||laserbeam273||Mac Applications and Mac App Store||4||Jul 2, 2012 06:37 PM|
All times are GMT -5. The time now is 12:38 PM.