|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|
|Can an Airport Express Be Used To Allow Multiple Devices on One Hotel WiFi Charge?||adoland||iPhone||20||Jan 5, 2011 01:23 PM|
|Multiple movies on a single DVD||yetti12||Mac Basics and Help||2||Sep 22, 2008 10:50 AM|
|Multiple Album Artwork for Single Album in Cover Flow||wowurrcool||iPod||4||Jul 23, 2008 02:24 PM|
|Multiple Photos on a Single Slide||qpawn||Digital Photography||2||Jul 17, 2008 04:43 AM|
|Is there any way to modify a null object in an Array?||bigrell486||Mac Programming||1||Apr 15, 2007 05:40 PM|
All times are GMT -5. The time now is 12:58 PM.