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 |
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)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 9.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 9.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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 |
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 |
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 |
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 |
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 |
The items on this page are in the following plugins: MBS MacCocoa Plugin.