Instance Method

fontMenu(_:)

Returns the menu that’s hooked up to the font conversion system, optionally creating it if necessary.

Declaration

func fontMenu(_ create: Bool) -> NSMenu?

Parameters

createFlag

If true, the menu object is created if necessary; if false, it is not.

Return Value

The font conversion system menu.

See Also

Managing the Font Panel and Font Menu

var isEnabled: Bool

A Boolean value that indicates if the font conversion system’s user interface items (the Font panel and Font menu items) are enabled.

func fontManager(Any, willIncludeFont: String) -> Bool

Requests permission from the Font panel delegate to display the given font name in the Font panel.

Deprecated
func fontPanel(Bool) -> NSFontPanel?

Returns the application’s shared Font panel object, optionally creating it if necessary.

func setFontMenu(NSMenu)

Records the given menu as the application’s Font menu.