title: NSInternalConsistencyException reason +entityForName: could not locate an NSManagedObjectModel for entity name
body: <p>Was using interface builder to create a view controller, and pass the NSManagedObjectContext to it, doing everything perfect. But I kept getting the error as if I didn't set something up.</p>
  
  <p>I'm posting this because no other question addresses the issue, but hope others will benefit.</p>
  
  <p>After using hard code instead of IB, I noticed that the root view controller's view was called before the App Delegate. That completely messed up the intended order. NSLog has showed me what comes first now.</p>
  
  <p>Many times I severely question Apple's (lack) of use of English grammar, or doing things the way any normal person would expect. This, like the iPad's app store not displaying full names on related programs, is one of those things.</p>
  
  <p>So yes, if you're using NIB's, hardcode the addSubview part instead of linking in Interface Builder. Even if you link it right, hardcode the root view controller. Or, someone with more experience could post another solution...
   I could be off, or way off even, but if so... blame Apple for assuming anyone reading the tutorials will always need to do it "that one way written in the docs".</p>
  
  <p>Core Animation suffers the same missing info and links. Ok now I'm ranting about Apple. If this issue was addressed, though, I apologize, yet all the ones I find are typos and "not linking". I did everything mentioned and it still didn't, which was very confusing.</p>
  
  <p>Thanks!</p>