• 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: Reliable way to get application (Apple) menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Reliable way to get application (Apple) menu? (From: Jeremy Dronfield <email@hidden>)
 >Re: Reliable way to get application (Apple) menu? (From: Justin Spahr-Summers <email@hidden>)

  • Prev by Date: Re: Reliable way to get application (Apple) menu?
  • Next by Date: Re: Filling an NSBezierPath with a texture
  • Previous by thread: Re: Reliable way to get application (Apple) menu?
  • Next by thread: Re: Reliable way to get application (Apple) menu?
  • Index(es):
    • Date
    • Thread