I have a very simple NSPredicate as such: NSPredicate *sPre开发者_Python百科dicate = [NSPredicate predicateWithFormat:@\"name beginswith \'%@\'\", theString];
How to search an NSSet or NSArray for an object which has an specific value for an specific property?
I have two entities: Department and DepartmentInfo. Every Department has one or many DepartmentInfo Objects. Inside DepartmentInfo, there is an departmentName attribute.
I am building a pretty complex predicate in several iterations, and want to supply the matching values right away in the predicate.
Example: I have a complex method that does a lot of stuff, and at the end I want to print a report with NSLog. NSLog wants a string, and then an arbitrary number of arguments. So lets say there are th
To preface, this is a follow up to an inqu开发者_开发问答iry made a few days ago: https://stackoverflow.com/questions/2981803/iphone-app-crashes-when-merging-managed-object-contexts
I have a Core Data store in which many of the entities should be unique instances of their particular NSEntityDescription. I\'m currently doing this by creating a new entity for a given description, t
I have an NSArray of CalEvents returned with the [CalCalendarStore eventPredicateWithStartDate] method. From the events returned, I am trying to keep only those in which the title of the event == @\"o
I\'m having trouble compoun开发者_运维技巧ding NSPredicate with AND, although using OR works fine.
Using Core Data w/a sqlite store on iPhone.... I\'ve got a bunch of comic book image entities, each with a string that includes the comic\'s issue#, e.g.: image.imageTitle = @\"Issue 12: Special Editi