• 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: Ondra Cada <email@hidden>
  • Date: Mon, 28 Jan 2002 03:12:25 +0100

Peter,

>>>>>> Peter Schols (PS) wrote at Mon, 28 Jan 2002 02:14:49 +0100:
PS> I have a simple app with two NIB files: Mainmenu.nib & mydocument.nib.
PS> The main menu is in the mainmenu.nib and I want to connect some menu
PS> items with actions available in a class that's in the other nib file.

There are no classes in NIBs, just instances!!!!

PS> However, it seems impossible to connect the menu items to actions in an
PS> instance that's not in the mainmenu.nib.

Right. There was a trick to do so in MiscKit ages ago. But you don't need that...

PS> What should I do? Combining both nib files? Or is there a better way?

...since there's the First Responder to you: connect the menu item action to
the First Responder. That way it would be automatically sent to the active
view of the key window, or its delegate (=window or document controller), or
application delegate, whoever understands the message.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


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

  • Prev by Date: Re: NIB / menu question
  • Next by Date: NSTextFields and undo
  • Previous by thread: Re: NIB / menu question
  • Next by thread: Setting desktop background from application
  • Index(es):
    • Date
    • Thread