• 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: 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


  • Follow-Ups:
    • SOLVED: Programatically manipulating an xcdatamodel package?
      • From: Allen Cronce <email@hidden>
  • Prev by Date: Re: Xcode now defaults to use C99 - so what's C99?
  • Next by Date: Re: Xcode now defaults to use C99 - so what's C99?
  • Previous by thread: Re: Xcode now defaults to use C99 - so what's C99?
  • Next by thread: SOLVED: Programatically manipulating an xcdatamodel package?
  • Index(es):
    • Date
    • Thread