Top "Nspredicate" questions

The NSPredicate class is used in Mac OS X and iOS development to define logical conditions used to constrain a search either for a fetch or for in-memory filtering.

Can I apply multiple predicates to an NSFetchRequest? Would it be better to manually parse my results?

Ok I have a basic iPad app that asks for 5 search/filter criteria from the user. Based on this data, …

iphone core-data nspredicate nsfetchrequest
Core Data- predicate with dates

I'm stumped trying to write a predicate for "Recently Completed" tasks, i.e. show the task if it was completed …

objective-c core-data nspredicate
NSPredicate for searching within relationship entities

I have an entity called Band which has a to-many relationship to a Category entity. The Category entity just contains …

iphone objective-c ios core-data nspredicate
Core Data Predicate Filter By Today's Date

I had issues with this and I haven't found a proper answer on SO so I'll leave a small tutorial …

swift core-data swift3 nspredicate
fetching objects from core data not in a set

I'm trying to fetch objects from core data that are not in a given set, but I haven't been able …

iphone objective-c core-data nspredicate
iOS: NSPredicate using NSDate to compare

I have an NSDate attribute called startDate stored in the persistence store in the following format (picture below). 426174354 = July 04, 2014 I …

ios ios7 nsdate nspredicate nsfetchrequest
Is it possible to filter an NSArray by class?

Is there a way construct a predicate to filter by class type? I currently loop through the array and check …

objective-c cocoa cocoa-touch nsarray nspredicate
Check if NSArray contains some int

I have a NSMutableArray of NSNumbers. Basically I just want to check if any of the NSNumbers in the array = …

objective-c nsmutablearray nspredicate nsnumber
NSPredicate check for kind of object class

I have an array of UIView objects. I want to call - (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)predicate on this array to …

iphone objective-c ios nspredicate
NSPredicate IN query from array elements

Apologies for a quirky title. I have an array of Ints and I would like to define an NSPredicate that …

swift nspredicate