[NSApp mainMenu] returns nil
[NSApp mainMenu] returns nil
- Subject: [NSApp mainMenu] returns nil
- From: Steve Checkoway <email@hidden>
- Date: Fri, 28 Oct 2005 00:31:15 -0700
I'm not calling NSApplicationMain(), but I do subclass NSApplication
and then call sharedApplication followed by [NSApp run].
In applicationDidFinishLaunching:, [NSApp mainMenu] returns nil yet
there is clearly a menu bar with an apple menu and an application menu.
If I create a new menu and call setMainMenu: then the apple menu and
the application menu are still there except this time the application
menu is blank and it is not an item in the menu that I created (which
is now returned by mainMenu).
Am I doing something horribly wrong or is this not set up until later
in the launching process (although I would suspect that
applicationDidFinishLaunching: should be late enough...
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden