Can't create menu item in app title menu?

BlitzMax Forums/MaxGUI Module/Can't create menu item in app title menu?

JoshK(Posted 2011) [#1]
When I first retrieve the root menu, there is by default a menu with the app file name created on it.

I am trying to add an "About" menu in the default app title menu that gets created for all Mac apps, but it appears as a child of the root menu.


DrDeath(Posted 2011) [#2]
That's a bit tricky, since MaxGUI usually has no access to the application menu. Best way is probably to use the CocoaExtension module, that gives you some ways to do this (plus some other nifty Cocoa magic).

With this module, you would add your menu item like this:
Global MyAppMenu:TGadget = GetCocoaApplicationMenu ()
CreateCocoaMenu ("About My App…",MenuAbout,MyAppMenu,0,0)