Programatically manipulating an xcdatamodel package?
Programatically manipulating an xcdatamodel package?
- Subject: Programatically manipulating an xcdatamodel package?
- From: Allen Cronce <email@hidden>
- Date: Sun, 1 Jun 2008 10:07:40 -0700
Hi all,
I'm interested in programmatically manipulating "User Info" key/value
pairs in a large data model package. The resulting saved xcdatamodel
package will be used for automatic code generation via mogenerator and
custom templates. This doesn't have to happen often, so it does not
need to be fancy or automated.
I'm open to any way to do this, including scripting Xcode to modify
the model, or writing a command line utility that manipulates the
package directly. Unfortunately a cursory look at the "elements" plist
file indicates to me that manipulating its proprietary structure might
be challenging.
Maybe the right way to do this is to momc the xcdatamodel package,
manipulate the compiled result with the NSManagedObjectModel API's,
then import the .mom file back into Xcode?
Thanks in advance for any suggestions.
Best,
Allen Cronce
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden