Re: NSController controllerEditor:didCommit:… exception
Re: NSController controllerEditor:didCommit:… exception
- Subject: Re: NSController controllerEditor:didCommit:… exception
- From: Kyle Sluder <email@hidden>
- Date: Sun, 14 Nov 2010 09:27:08 -0800
On Nov 14, 2010, at 3:32 AM, vincent habchi <email@hidden> wrote:
> Hi everybody,
>
> this is a minor annoyance but I'm still puzzled about it.
>
> When I launch my application, after -applicationWillFinishLaunching: completes, I get an exception started by -[NSController controllerEditor:didCommit:contextInfo:]. I cannot get a decent traceback to pinpoint what object is causing the exception, since it is ultimately raised from _NSFireDelayedPerform. It has somehow something to do with Core data, since ignoring it brings up the message "Cannot perform operation without a managed object context" (and no fatal error ensues).
You could break on all the NSObject performSelector: variants. Perhaps add a breakpoint action that checks if the selector is equal to whatever immediately follows the _NSFireDelayedPerform.
>
> While it is true the MOC is not initialized at this point, I don't see what could cause this message appear at such an early stage. Can it be linked somehow with the initialization of a static object embedded in the "MainMenu" NIB?
Sure. Where are you giving your controllers their MOC?
--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