• 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: [NEWBIE] Multi Nib help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] Multi Nib help


  • Subject: Re: [NEWBIE] Multi Nib help
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 3 Sep 2002 09:32:33 -0700

On Mon, 2 Sep 2002 22:33:04 -0400, Daniel Howard <email@hidden> said:

>different nib file then the one that is calling it. i.e. In
>'MainMenu.nib' I have a menu item called 'Show Drawer' and in
>'MyDocument.nib' I have the actual drawer. How do I go about
>displaying the drawer?

You want to make the menu item's target the FirstResponder in the nib. The
rule is that when an object is hooked up this way, the action message that
it sends will go up the responder chain to the first responder who can
handle it. The chain is determined at the moment the message is sent, and
includes the window, its delegate, and its NSWindowController (if I
remember correctly). Thus you get lots of opportunity to handle the message
from within the nib where the drawer/window pair lives. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: [NEWBIE] Multi Nib help
  • Next by Date: Re: Variable Sized Subview
  • Previous by thread: Re: [NEWBIE] Multi Nib help
  • Next by thread: NSDoc and Memory
  • Index(es):
    • Date
    • Thread