Can anyone point me to a tutorial on building the core data model dynamically in Xcode? All tutorials I found are based on a static design but the apple documentation says it is possible to build the model programatically..sadly no example on that in apple documentation set.
Asked
Active
Viewed 803 times
1 Answers
3
You have to init a NSManagedObjectModel
, then for each entity in your model you create an NSEntityDescription
, then create an NSAttributeDescription
per attribute. You can see a basic example from this post.

Tarek Hallak
- 18,422
- 7
- 59
- 68

Dennis
- 693
- 1
- 6
- 16
-
Thanks. I found the link helpful. – pooja-ios Jun 27 '13 at 06:58
-
1@pooja-ios - if this answer solved your problem you need to hit the checkmark and accept it. – TechZen Aug 03 '15 at 21:00