• 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: John Hörnkvist <email@hidden>
  • Date: Tue, 5 Jun 2001 18:12:31 +0200

On Tuesday, June 5, 2001, at 02:15 PM, 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?

Add the actions to the FirstResponder, and connect to those.

This will also disable the menus when there is no object on the responder chain that implements the methods.

Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


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

  • Prev by Date: My Newbie Learning Question
  • Next by Date: Re: Newbie question regarding Learning Cocoa
  • Previous by thread: Connecting actions to menu
  • Next by thread: Re: Connecting actions to menu
  • Index(es):
    • Date
    • Thread