menu()
Returns a menu of commands that are specific to an input method.
Declaration
func menu() -> NSMenu!Return Value
The menu object.
Discussion
This method is called whenever the menu needs to be drawn so that an input method can update the menu to reflect the current state.