Re: how to manage multiple non-document windows
Re: how to manage multiple non-document windows
- Subject: Re: how to manage multiple non-document windows
- From: Steve Christensen <email@hidden>
- Date: Fri, 25 Apr 2008 16:44:06 -0700
On Apr 25, 2008, at 12:45 PM, Erik Verbruggen wrote:
On 25 Apr 2008, at 20:06, Steve Christensen wrote:
I put both the window and NSWindowController subclass in
MainMenu.nib since some of the menu items control behavior in the
window (and some of the window's current state is reflected in the
menus. So I wouldn't think that you'd want to reload the nib for
that case, right?
Yes, you will want to reload the nib to get a new window. However,
no, you don't want that for the menu bar. So you should move the
window to a different nib file. Unfortunately, that will give you
the "excitement" of having to update the menu status according to
the selected window....:
And if I move the window and window controller out of the main nib,
I'm no longer given an option for targets associated with my window
controller (the first responder doesn't list my controller IBActions)
when trying to wire up all the menu items. This was likely why I just
put them into the main nib in the first place.
_______________________________________________
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