Instance Method


Returns the mode mask corresponding to the expected font panel mode.


- (NSFontPanelModeMask)validModesForFontPanel:(NSFontPanel *)fontPanel;


The mode masks are defined in Mode Masks.

The Font Panel has the ability to hide elements that are not applicable for a given context by having the target respond to validModesForFontPanel:. If the target desires a font panel mode other than the standard mode mask, it must respond to this method.

This message is sent up the responder chain to the first responder implementing the method. Ideally that object should be the first responder found that also implements changeFont:.