On Feb 8, 2006, at 7:51 PM, Sean Willson wrote:
> I'm running into a problem I was wondering if people have seen or
> could help
> with. I have core data document based application that I am unable
> to save.
> When I try to save the document I get:
>
> --
> Exception raised during posting of notification. Ignored. exception:
> Cannot perform operation since entity with name '(null)' cannot be
> found
> --
>
> printed into the console. I have turned off all object creation in my
> context. All that is remaining now is 2 nibs are loaded that have
> NSArrayController and NSObjectControllers in them. I don't have
> anything at
> all in the app, but yet the error persists.
>
> Are there any easy ways to track this down? Seems like I should be
> able to
> enable some debug level or set a breakpoint in a dummy subclass to
> find this
> but it's alluding me. Any comments or suggestions would be greatly
> appreciated.
This error is emitted by an NSObjectController set in Entity mode as
it attempts to access the NSEntityDescription in the
NSManagedObjectModel associated with the object class name as
specified in the inspector in IB. (That's a mouthful: in short, you
have a controller in entity mode with a nil object class name.)
Select each of your controllers in IB, and hit Command-1 to bring up
the inspector. In the "Object Class Name" field at the top, ensure
you have a valid entity name.
- matthew