title: insertNewObjectForEntityForName:
body: <p>I set up an Entity using the Xcode .xcdatamodel file editor.  I created an entity called Person, added a few attributes, then generated a .m file to represent it.  That all works fine.</p>
  
  <p>Now when I go to write a line of code like:</p>
  
  <pre>
    Person * person = (Person*)[NSEntityDescription
                          insertNewObjectForEntityForName:@"Person"
                          inManagedObjectContext:managedObjectContext];
  </pre>
  
  <p>And I get:</p>
  
  <blockquote>
  Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Person''
  </blockquote>
  
  <p>I followed the Location example exactly though, step-for-step I believe, but I think I <em>must</em> have missed some kind of crucial "registration" step where I tell Xcode that my Person entity should be accessible.. Also I didn't have a way to "initialize" the managedObjectContext at all, the Location example doesn't seem to do that either.</p>