Configure Cocoas NSFontPanel

What settings are there for Cocoas NSFontPanel?

The NSFontPanel, available on iWork pages, has the Text Underline, Text Strikethrough, and Document Color elements at the top. We do not want this in our NSFontPanel. Is there a way to remove or disable these controls?

+4
source share
2 answers

Record the NSFontPanelValidation protocol in the appropriate responders.

+5
source

As you said, the responder must implement the NSFontPanelValidation protocol and override the fontPanel method - (NSUInteger) validModesForFontPanel: (NSFontPanel *). But this method is not called when it showed NSFontPanel.

0
source

Source: https://habr.com/ru/post/1306353/


All Articles