Re: Reliable way to get application (Apple) menu?
Re: Reliable way to get application (Apple) menu?
- Subject: Re: Reliable way to get application (Apple) menu?
- From: Jeremy Dronfield <email@hidden>
- Date: Sun, 13 Mar 2005 11:50:50 +0000
On 12 Mar 2005, at 8:39 pm, Justin Spahr-Summers wrote:
Well, first of all, the Apple menu and the Application menu are NOT
the same thing. The Apple menu is the blue apple which contains
system-wide stuff, the Application menu is specific to your program.
From the NSApplication docs:
- (void)setAppleMenu:(NSMenu *)menu
Sets the receiver’s application menu (the menu immediately to the right
of the system Apple menu) to menu.
Also, from the log output included in my original post:
<MenuItem: 0x34d470 , submenu: 0x342b30 (Apple)> <<<< the
"application"/"Apple" menu
And secondly, wouldn't
[[NSApp mainMenu] itemAtIndex:0]
work, seeing as it's going to be the first menu all the time?
Is it? If you could persuade Apple to give me a written guarantee on
that I'd be grateful.
Regards,
Jeremy
_______________________________________________
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