On Sun, Nov 14, 2010 at 11:10 PM, vincent habchi <[email protected]> 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 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]

Reply via email to