I have an NSManagedObjectModel that I can generate at runtime but can’t use it at runtime because I need the class files for the entities.
How can I generate these classes, and maybe stick them in an NSBundle to load them at runtime?
Thanks!
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.
The best solution is to add Protocols.
You do not need the implementation for the managed object class.
Use the protocol to access your objects.
This code would exist in some kind of manager: