Name
NSFontPanel — Mac OS X 10.0
Synopsis
This class provides an implementation for the font-panel that users
interact with to select fonts in an application. The panel provides a
list of all available fonts from which the user can select a font,
style, size, and preview the font as well.
NSFontPanel
communicates with
NSFontManager
to obtain the set of available
fonts, as well as to effect any changes that may need to be done in
the selected text.
|
@interface NSFontPanel : NSPanel
|
// Accessor Methods
|
- (void)setEnabled:(BOOL)flag; |
- (void)setAccessoryView:(NSView *)aView; |
- (NSView *)accessoryView;
|
- (void)setPanelFont:(NSFont *)fontObj isMultiple:(BOOL)flag; |
// Class Methods
|
+ (NSFontPanel *)sharedFontPanel;
|
+ (BOOL)sharedFontPanelExists;
|
// Instance Methods
|
- (void)reloadDefaultFontFamilies;
|
- (BOOL)isEnabled;
|
- (NSFont *)panelConvertFont:(NSFont *)fontObj; |
- (BOOL)worksWhenModal;
|
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.