How do I generate code (or find the code generated) for fetch requests I created graphically using the data model editor in Xcode 4.x?
问题 I can see where the code goes for the Entities, as NSManagedObject specialized classes, that was very straightforward. Bu t I do not see generated code or an option to generate code for visually designed fetch requests. 回答1: There is no actual "code" but just serialized NSFetchRequest objects in the data model file. You can get the NSFetchRequest objects themselves which you can query for their predicates and the like. For fetch templates use -[NSMangedObjectModel fetchRequestTemplateForName: