Abusing Core Data for fun and profit.
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