• 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: Strange Managed Context Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Managed Context Error


  • Subject: Re: Strange Managed Context Error
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 20 Aug 2005 14:33:16 -0700


On Aug 20, 2005, at 10:19 AM, Colin Cornaby wrote:

I'm running the following code (it is inside a NSManagedObjectContent subclass):

Why have you subclassed NSManagedObjectContext? There should typically be little reason to do so.

NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"EntityType" inManagedObjectContext:self];
[request setEntity:entity];
NSArray *entities = [self executeFetchRequest:request error:nil];
return entities;
However when it runs, it prints to the console when it tries to execute the fetch request:
"Exception raised during posting of notification. Ignored. exception: +entityForName: could not locate an NSManagedObjectModel"



How have you set up the context? Have you set its persistent store coordinator?


so I'm assuming something could be being released,

If you were messaging a freed object, your application would crash -- typically with a SIGBUS 10.


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange Managed Context Error
      • From: Colin Cornaby <email@hidden>
References: 
 >Strange Managed Context Error (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: CoreData based document NSUndoManager troubles
  • Next by Date: Re: using bless to change boot device
  • Previous by thread: Strange Managed Context Error
  • Next by thread: Re: Strange Managed Context Error
  • Index(es):
    • Date
    • Thread