Proper Mac menu usage
Posted: Thu Oct 11, 2012 5:17 pm
I am essentially new to Macs, so I'm not sure how to use the main Mac menu properly (not even sure what it's called).
First, how do I change the name of the bolded menu title next to the Apple logo? When I run PB programs the title is "PureBasic.0" or similar. Is there a way to change this, or does it just change when I compile and properly name the .app?
Second, am I using the special menu constants correctly?
On the default (Cocoa?) subsystem on OSX 10.5 and 10.7, none of these menu items show up named correctly in the "PureBasic.0" menu. (They show up "About PureBasic.0", "Quit PureBasic.0", and "Preferences..."). In the "carbon" subsystem, only the About entry shows up with the custom name.
First, how do I change the name of the bolded menu title next to the Apple logo? When I run PB programs the title is "PureBasic.0" or similar. Is there a way to change this, or does it just change when I compile and properly name the .app?
Second, am I using the special menu constants correctly?
Code: Select all
Flags.i = #PB_Window_SystemMenu | #PB_Window_ScreenCentered
OpenWindow(0, 0, 0, 480, 360, "Menu Item Test", Flags)
CreateMenu(0, WindowID(0))
MenuItem(#PB_Menu_About, "About TEST")
MenuItem(#PB_Menu_Preferences, "About PREF")
MenuItem(#PB_Menu_Quit, "About QUIT")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow