NSFontPanel

NSFontPanel Mac OS X 10.0

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.

figs/cocn_1534.gif

@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;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes