NSFontPanelMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

NSFontPanelMBS class

Super class: NSPanelMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSFontPanel class implements the Font panel—a user interface object that displays a list of available fonts, letting the user preview them and change the font used to display text.
Example
NSFontPanelMBS.sharedFontPanel.Show

The actual changes are made through conversion messages sent to the shared NSFontManager instance. There's only one Font panel for each application.
Subclass of the NSPanelMBS class.

Mode Constants

Constant Value Description
NSFontPanelAllEffectsModeMask &hFFF00 Display all the effects user interface items.
NSFontPanelAllModesMask &hFFFFFFFF Display all the available adornments.
NSFontPanelCollectionModeMask 4 Display the font collections column.
NSFontPanelDocumentColorEffectModeMask 2048 Display the document color button.
NSFontPanelFaceModeMask 1 Display the typeface column.
NSFontPanelShadowEffectModeMask 4096 Display the shadow effects button.
NSFontPanelSizeModeMask 2 Display the font size column.
NSFontPanelStandardModesMask &hFFFF Display the standard default font panel—that is, including the collections, typeface, and size columns.
NSFontPanelStrikethroughEffectModeMask 512 Display the strike-through popup menu.
NSFontPanelTextColorEffectModeMask 1024 Display the text color button.
NSFontPanelUnderlineEffectModeMask 256 Display the underline popup menu.

Super class NSPanelMBS

Constants

Constant Value Description
NSAlertAlternateReturn 0 One of the possible return values for the alert panels. The user pressed the alternate button.
NSAlertDefaultReturn 1 One of the possible return values for the alert panels. The user pressed the default button.
NSAlertErrorReturn -2 One of the possible return values for the alert panels. The alert cannot identify the reason it was closed; it may have been closed by an external source or by a button other than those listed above.
NSAlertOtherReturn -1 One of the possible return values for the alert panels. The user pressed a second alternate button.
NSCancelButton 0 One of the constants for the modal panel return values. The Cancel button.
NSDocModalWindowMask 64 One of the constants you can use to specify the style when creating a window. The panel is created as a modal sheet.
NSHUDWindowMask 8192 One of the constants you can use to specify the style when creating a window.
NSNonactivatingPanelMask 128 One of the constants you can use to specify the style when creating a window. The panel can receive keyboard input without activating the owning application.
NSOKButton 1 One of the constants for the modal panel return values. The OK button.
NSUtilityWindowMask 16 One of the constants you can use to specify the style when creating a window. The panel is created as a floating window.

Super class NSWindowMBS

Super class NSResponderMBS

This class has no sub classes.

Some examples using this class:

Blog Entries


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


NSFontMBS   -   NSGraphicsMBS


💬 Ask a question or report a problem