• 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: Connecting actions to menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting actions to menu


  • Subject: Re: Connecting actions to menu
  • From: Henri Lamiraux <email@hidden>
  • Date: Tue, 5 Jun 2001 10:18:38 -0700

In your main nib add your window controller actions to the
firstResponder and connect your menu itemS to the firstResponder. At
runtime when one of your document window is key its window controller
will be in the responder chain (because the window controller is the
delegate of the window). Everything will work just fine. This is one of
the reason for the existence of the firstResonder.

On Tuesday, June 5, 2001, at 05:15 AM, Ivan Myrvold wrote:

> I need to connect the actions I have created in my document-based Cocoa
> program. The actions are in the MyWindowController class that I
> subclassed in MyDocument.nib. But I can not connect them to the
> MainMenu, because the menu is in another nib, MainMenu.nib. And this
> nib file don't have a subclass of NSWindowController called
> MyWindowController. So how can I do that?


References: 
 >Connecting actions to menu (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: Newbie question regarding Learning Cocoa
  • Next by Date: Re: cocoa-dev digest, Vol 1 #99 - 10 msgs
  • Previous by thread: Re: Connecting actions to menu
  • Next by thread: Re: Connecting actions to menu
  • Index(es):
    • Date
    • Thread