• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to manage multiple non-document windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to manage multiple non-document windows
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >how to manage multiple non-document windows (From: Steve Christensen <email@hidden>)
 >Re: how to manage multiple non-document windows (From: Ken Thomases <email@hidden>)
 >Re: how to manage multiple non-document windows (From: Steve Christensen <email@hidden>)

  • Prev by Date: [not solved] Re: Framework for IB Plugin and app
  • Next by Date: Re: Library-Object in NSPersistentDocument but not in XML-file
  • Previous by thread: Re: how to manage multiple non-document windows
  • Next by thread: Re: how to manage multiple non-document windows
  • Index(es):
    • Date
    • Thread