Programatically manipulating an xcdatamodel package?
Programatically manipulating an xcdatamodel package?
- Subject: Programatically manipulating an xcdatamodel package?
- From: Allen Cronce <email@hidden>
- Date: Thu, 5 Jun 2008 08:49:30 -0700
Hi all,
I posted this question on the Xcode-users list and did not receive a
response, so I'm trying here.
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.
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. The plist seems to be an object archive, but I suspect
the objects are Xcode proprietary.
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden