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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.