Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFontPanelMBS class.

NSFontPanelMBS.accessoryView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The accessory view.

Establishes the specified view as the receiver's accessory view, allowing you to add custom controls to your application's Font panel without having to create a subclass.
(Read and Write computed property)

NSFontPanelMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The Constructor.

NSFontPanelMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The destructor.

NSFontPanelMBS.Enabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver's Set button is enabled.

The receiver continues to reflect the font of the selection for cooperating text objects regardless of this setting.
(Read and Write computed property)

NSFontPanelMBS.panelConvertFont(font as NSFontMBS) as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts the specified font using the settings in the receiver, with the aid of the shared NSFontManager if necessary.

Font: The font to be converted.

Returns the converted font, or aFont itself if it can't be converted.

For example, if aFont is Helvetica Oblique 12.0 point and the user has selected the Times font family (and nothing else) in the Font panel, the font returned is Times Italic 12.0 point.

NSFontPanelMBS.reloadDefaultFontFamilies

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Triggers a reload to the default state, so that the delegate is called.

This reloading provides the delegate opportunity to scrutinize the default list of fonts to be displayed in the panel.

NSFontPanelMBS.setPanelFont(font as NSFontMBS, isMultiple as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the selected font in the receiver to the specified font.

Font: The font to be selected.
flag: If false, selects the specified font; otherwise selects no font and displays a message in the preview area indicating that multiple fonts are selected.

You normally don't use this method directly; instead, you send setSelectedFont to the shared NSFontManager, which in turn invokes this method.

Some examples using this method:

NSFontPanelMBS.worksWhenModal as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Indicates whether the receiver allows fonts to be changed in modal windows and panels.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...