Skip navigation.
 
mlTwo help menus
FROM : Simon Bovet
DATE : Wed Apr 20 15:23:28 2005

If a window is displayed before the application finishes launching
(e.g. by calling some [NSApp runModalForWindow:...] before the
[appDelegate applicationDidFinishLaunching:]), the menu bar will
display two help items: the one coming from the MainMenu.nib, and
another one containing one single default item "MyApp Help".

How can I remove this second Help menu from the menu bar? It is not
contained in the [NSApp mainMenu], can't be reached neither with class
posing nor with the carbon API...

Any help warmly appreciated!



NB: I know that it is a strange programming technique to display a
window before the application finishes launching (and probably finishes
initializing everything correctly). In my case, I need to display a
license agreement confirmation dialog before the application display
anything else (such as splash screen). [NSApp runModalForWindow:] is
actually called from the [appDelegate awakeFromNib].

Related mailsAuthorDate
No related mails found.