Type Method

setFontManagerFactory:

Sets the class object used to create the font manager to the given class.

Declaration

+ (void)setFontManagerFactory:(Class)factoryId;

Parameters

aClass

The new font manager factory class, which should be a subclass of NSFontManager.

Discussion

When the NSFontManager class object receives a sharedFontManager message, it creates an instance of aClass, if no instance already exists. Your font manager class should implement init as its designated initializer. The default font manager factory is NSFontManager.

This method must be invoked before your application’s main nib file is loaded, such as in the application delegate’s applicationWillFinishLaunching: method.

See Also

Changing the Default Font Conversion Classes

+ setFontPanelFactory:

Sets the class used to create the Font panel to the given class.