• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: could not locate an NSManagedObjectModel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: could not locate an NSManagedObjectModel


  • Subject: Re: could not locate an NSManagedObjectModel
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 20 Feb 2011 14:50:00 -0800

On Sun, Feb 20, 2011 at 2:38 PM, Shane
<email@hidden> wrote:
> "The Managed Object Context can handle data persistence transparently,
> so only more advanced applications need interact directly with the
> Coordinator."

You need a PSC because MOMs are attached to a PSC. The MOC can't get a
MOM without a PSC.

Just because you don't plan on persisting your store doesn't mean you
don't need a PSC. Each MOC has an independent view of reality, and the
PSC is where all the MOCs meet to sort it out.

If you were following the tutorial you linked to, the default template
code would have set up your MOC with a PSC. The default template's app
delegate has the methods -managedObjectModel and
-persistentStoreCoordinator that do exactly that. Since you're not
actually following the tutorial, you missed that.

You might want to consult with the Core Data documentation again.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >could not locate an NSManagedObjectModel (From: Shane <email@hidden>)
 >Re: could not locate an NSManagedObjectModel (From: Kyle Sluder <email@hidden>)
 >Re: could not locate an NSManagedObjectModel (From: Shane <email@hidden>)
 >Re: could not locate an NSManagedObjectModel (From: Kyle Sluder <email@hidden>)
 >Re: could not locate an NSManagedObjectModel (From: Shane <email@hidden>)
 >Re: could not locate an NSManagedObjectModel (From: Shane <email@hidden>)

  • Prev by Date: Re: could not locate an NSManagedObjectModel
  • Next by Date: Re: NSComboxBox alternative
  • Previous by thread: Re: could not locate an NSManagedObjectModel
  • Next by thread: Re: could not locate an NSManagedObjectModel
  • Index(es):
    • Date
    • Thread