Accessing Menu in Another Nib
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