• 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
Abusing Core Data for fun and profit.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Abusing Core Data for fun and profit.


  • Subject: Abusing Core Data for fun and profit.
  • From: Stephen Deken <email@hidden>
  • Date: Wed, 14 Feb 2007 09:25:49 -0600

Hello list,

Some time ago, I had the need to add a field to an existing Core Data / Cocoa Bindings application for which I didn't have the source code. A quick review of the internets didn't turn up anything promising with regard to mucking about with Core Data .mom files, so I wrote a quick and dirty decompiler.

http://svn.stephendeken.net/trunk/projects/mom-decompile/

This shell tool takes two arguments: the filename of the .mom file to decompile, and a path to which the .xcdatamodel file will be written. The .xcdatamodel file lacks a layout, but as it happens, Xcode will generate that for you. Once the data model is tweaked, you can recompile it with momc.

The tool currently is very rough around the edges, and it relies on the private XDBase framework to generate the .xcdatamodel. It doesn't handle all cases, but should be good enough for simple data models. It can certainly be improved.

Thoughts, comments, and patches are always welcome.

Cheers,

Stephen Deken
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Abusing Core Data for fun and profit.
      • From: "Stephen Deken" <email@hidden>
  • Prev by Date: Re: How to make 'filter' child panels? [SOLVED -- sort of]
  • Next by Date: How do you know when a modal operation has finished (in terms of Obj-C code) ?
  • Previous by thread: Re: How to make 'filter' child panels? [SOLVED -- sort of]
  • Next by thread: Re: Abusing Core Data for fun and profit.
  • Index(es):
    • Date
    • Thread