|Jun 7, 2009, 09: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 09: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 12:23 PM|
|Multiple movies on a single DVD||yetti12||Mac Basics and Help||2||Sep 22, 2008 09:50 AM|
|Multiple Album Artwork for Single Album in Cover Flow||wowurrcool||iPod||4||Jul 23, 2008 01:24 PM|
|Multiple Photos on a Single Slide||qpawn||Digital Photography||2||Jul 17, 2008 03:43 AM|
|Is there any way to modify a null object in an Array?||bigrell486||Mac Programming||1||Apr 15, 2007 04:40 PM|
All times are GMT -5. The time now is 01:56 PM.