Re: Dynamic MainMainNib Loading
Re: Dynamic MainMainNib Loading
- Subject: Re: Dynamic MainMainNib Loading
- From: Jonathan Hess <email@hidden>
- Date: Tue, 19 Feb 2008 19:05:56 -0800
Hey Ben -
You could load an empty MainMenu initially, and then based on the
default, load one of the others and use it to replace the current main
menu's items.
Jon Hess
On Feb 19, 2008, at 6:31 PM, Ben Einstein wrote:
This has been discussed 1 or 2 times previously, but with no concise
answer.
I'm looking to change the MainMenu NIB file when an application
loads. I have two different MainMenus; one loads a set of subclasses
of the other. It works fine to manually change at compile time which
NIB to use or even manually change inside the app's bundle. But I
want to provide a user default that would be read at startup. Is
there any way to catch the loading of the application before it
pulls the NIB name from the plist?
Is there a less hackish way to load two different sets of main menus?
Ben
_______________________________________________
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
_______________________________________________
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