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 23:21:42 -0800
On Sun, Nov 14, 2010 at 11:10 PM, vincent habchi <email@hidden> wrote:
>
> Quincey, Kyle:
>
> >> 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?
> >
> > If, as it happens, your MainMenu.nib contains a window, make sure that "visible at launch" isn't checked.
>
> Upon further examination, I have a NSArrayController in entity mode in the MainMenu NIB, so I think the error is caused by its initialization while no MOC is yet created. I'll try to move it in a separate NIB or create it programatically.
The main menu nib is kind of funny. It's loaded differently (or at
least at a different time) than the other nibs. It's much more
sensitive to timing issues like this.
Who provides the MOC for the controller (another object in the nib?),
and how is it provided (bindings, -setManagedObjectContext:)?
--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