• 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
Accessing Menu in Another Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing Menu in Another Nib


  • Subject: Accessing Menu in Another Nib
  • From: Kevin Ferguson <email@hidden>
  • Date: Fri, 3 Oct 2008 21:01:58 -0700

Greetings!

So, let's say I have a menu in a secondary NIB file that I plan to use as a status bar menu. Since the user may not want that menu to even exist, I don't want to load it if it doesn't need to be, so it's in a secondary nib file.

Is there any way to access that menu from that second nib file?

Basically, is there any way for me to load that second NIB file (using something like 'loadNibNamed:' or the like) and then get the menu that I have connected to the File's Owner 'menu' outlet, or is my only option to put the menu in the MainMenu NIB file and immediately release it if the user doesn't want it? (I find this an issue in case they decide they DO want it once the app loads)

-Kevin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Accessing Menu in Another Nib
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: A way to use multiple colours with one NSBezierPath?
  • Next by Date: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
  • Previous by thread: Re: A way to use multiple colours with one NSBezierPath?
  • Next by thread: Re: Accessing Menu in Another Nib
  • Index(es):
    • Date
    • Thread