• 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: NIB / menu question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NIB / menu question


  • Subject: Re: NIB / menu question
  • From: Donald Brown <email@hidden>
  • Date: Sun, 27 Jan 2002 19:36:00 -0600

If the classes are responders (documents, windows, etc.), you can add the
actions to the FirstResponder in mainmenu.nib (go to classes tab, look for
FirstResponder as a subclass of NSObject, show info, add actions) and
connect to them.

If the classes aren't, you have to create a NSObject subclass in
mainmenu.nib, instantiate it, and get the document to talk to it.

Donald

on 1/27/02 7:14 PM, Peter Schols at email@hidden wrote:

> Hi,
>
> I have a simple app with two NIB files: Mainmenu.nib & mydocument.nib.
> The main menu is in the mainmenu.nib and I want to connect some menu
> items with actions available in a class that's in the other nib file.
> However, it seems impossible to connect the menu items to actions in an
> instance that's not in the mainmenu.nib.
>
> What should I do? Combining both nib files? Or is there a better way?
>
> Thanks!
>
> Peter

--
Donald Brown
email@hidden
http://www.eamontales.com

We have met the enemy and he is us - Pogo


References: 
 >NIB / menu question (From: Peter Schols <email@hidden>)

  • Prev by Date: NIB / menu question
  • Next by Date: Re: Daemons!
  • Previous by thread: NIB / menu question
  • Next by thread: Re: NIB / menu question
  • Index(es):
    • Date
    • Thread