• 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 13:38:19 -0800

On Sun, Feb 20, 2011 at 1:23 PM, Shane
<email@hidden> wrote:
> Trying to learn core data and I have added it to my application while
> swapping out my old ways. So I have this initially ...
>
> @synthesize managedCoreDataObjectContext;
>
> - (void) awakeFromNib
> {
>        ...
>        [self setManagedCoreDataObjectContext:[[NSManagedObjectContext alloc] init]];
> }
>
> - (void) applicationDidFinishLaunching:(NSNotification *) aNotification
> {
>        NSManagedObjectContext *context = [self managedCoreDataObjectContext];
>
>        // error is happening on this next line …
>        network = [NSEntityDescription
>                insertNewObjectForEntityForName:@"Network"
>                inManagedObjectContext:context];
> }

Since we have no idea where self.managedCoreDataObjectContext gets
set, I'm can only make a wild leap that -managedCoreDataObjectContext
is returning nil.

--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

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

  • Prev by Date: Re: Getting NSScrollView to ignore scrolling
  • Next by Date: Re: could not locate an NSManagedObjectModel
  • Previous by thread: could not locate an NSManagedObjectModel
  • Next by thread: Re: could not locate an NSManagedObjectModel
  • Index(es):
    • Date
    • Thread