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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to