On Nov 14, 2010, at 3:32 AM, vincent habchi <[email protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
