• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Programatically manipulating an xcdatamodel package?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: App hangs when displaying any sheet in 10.5 [SOLVED]
  • Next by Date: Getting rid of specific "May not respond" messages
  • Previous by thread: Subject: Re: Keyboard Layout Services
  • Next by thread: Getting rid of specific "May not respond" messages
  • Index(es):
    • Date
    • Thread