Mogenerator latest version, 1.13.1 installer, and build instructions.

Mogenerator is a very useful utility that creates model classes for you when working with Core Data. I've written about Mogenerator before but what I didn't realize is that I wasn't working with the latest version (the version I was using was 1.6.1 and the latest version as of this writing, compiled from trunk, is 1.13.1).

It's easy to get confused as there are several outdated downloads and project pages floating around the web. It appears, however, that this github repository is where Mogenerator is being actively developed.

If you're in a rush, here's the Mogenerator 1.13.1 DMG installer (104KB) I built (only tested on my MBP running OS X 10.5.7).

If you'd rather build your own, here are some simple instructions for building and installing the latest version from trunk:

  1. Clone the github repository: git clone git://
  2. Switch to the installer folder: cd mogenerator/installer
  3. Build the installer: ./make_installer.command
  4. Run the installer: open build/mogenerator-1.13.1.pkg

Hope this helps!

PS. By the way, in case you're wondering what changed, I didn't see too much difference. A diff between two generated model classes – albeit simple ones – follows (mind you, the insertInManagedObjectContext: had bitten me before):

< @implementation SectionID
< @end
< + (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
<   return [NSEntityDescription insertNewObjectForEntityForName:@"Section" inManagedObjectContext:moc_];
< }
< - (SectionID*)objectID {
<   return (SectionID*)[super objectID];
< }

Update: Hmm, and a bunch of 10.5 specific retains in the generated.h:

< @property (retain) NSString *rawSource;
< #endif


  • By the way, in case you're wondering what changed, I didn't see too much difference.