• 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
could not locate an NSManagedObjectModel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

could not locate an NSManagedObjectModel


  • Subject: could not locate an NSManagedObjectModel
  • From: Shane <email@hidden>
  • Date: Sun, 20 Feb 2011 15:23:23 -0600

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];
}

 +entityForName: could not locate an NSManagedObjectModel for entity
name 'Network'

Network is a class that is subclassed from NSManagedObject, and
included in my project. My *.xcdatamodel file is also included in this
project.

Any help much appreciated.
_______________________________________________

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: Andreas Grosam <email@hidden>
    • Re: could not locate an NSManagedObjectModel
      • From: Darren Wheatley <email@hidden>
    • Re: could not locate an NSManagedObjectModel
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: RE: NSComboxBox alternative
  • Next by Date: Re: Getting NSScrollView to ignore scrolling
  • Previous by thread: Re: Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
  • Next by thread: Re: could not locate an NSManagedObjectModel
  • Index(es):
    • Date
    • Thread