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.
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.
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:]
and related methods.
If it's a fetch property you want, you get the entity description from the managed object model and then ask the entity for its fetched properties. Then use -[ NSFetchedPropertyDescrition fetchRequest]
to get the actual NSFetchRequest object.