Instance Method インスタンスメソッド

validModesForFontPanel:

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

Declaration 宣言

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

Discussion 解説

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:.