title: Core Data Design
body: <p>I want to extend my generated <code>NSManagedObject</code> classes (data mapping, init, utility functions).  I was doing this with categories, but doing two imports got old real fast.  I saw that MagicalRecord subclassed the generated files (<a href="https://github.com/magicalpanda/MagicalRecord/tree/develop/Samples/iOS/Application/Models" rel="nofollow">https://github.com/magicalpanda/MagicalRecord/tree/develop/Samples/iOS/Application/Models</a>).  I tried this approach, but ran into the following problem.</p>
  
  <p><code>[foo.bar myExtensionMethod];</code></p>
  
  <p>Where foo is of class <code>_foo</code> and bar is of class <code>_bar</code>.  The method <code>myExtensionMethod</code> is in the subclass of <code>_bar</code> named <code>bar</code>.  I get a syntax error along the lines of <code>_bar</code> does not have function <code>myExtensionMethod</code>.  </p>
  
  <h3>question</h3>
  
  <p>Is there a way to extend generated <code>NSManagedObject</code> classes that doesn't require two imports or something like modgenerator?  As I regenerate the files, manually editing the generated files isn't an option.</p>