Instance Method

validModesForFontPanel(_:)

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

Declaration

func validModesForFontPanel(_ fontPanel: NSFontPanel) -> NSFontPanel.ModeMask

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(_:).