• 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: Dynamic MainMainNib Loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A window that rejects focus (From: John Stiles <email@hidden>)
 >Re: A window that rejects focus (From: "Kyle Sluder" <email@hidden>)
 >Re: A window that rejects focus (From: John Stiles <email@hidden>)
 >Re: A window that rejects focus (From: "Kyle Sluder" <email@hidden>)
 >Re: A window that rejects focus (From: John Stiles <email@hidden>)
 >Dynamic MainMainNib Loading (From: Ben Einstein <email@hidden>)

  • Prev by Date: makeFirstResponder returns NO
  • Next by Date: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • Previous by thread: Dynamic MainMainNib Loading
  • Next by thread: Re: A window that rejects focus
  • Index(es):
    • Date
    • Thread