nsfontpanel

Using NSFontPanel in Cocoa

I'm trying to use an NSFontPanel to allow the user to change an application-wide font setting. It's supposed to work something like this: the user clicks a button, a font panel pops up, they choose a font and a size, and their selection is persisted. The following code shows the panel: - (IBAction)showFontMenu:(id)sender { NSFontMa...

How to make NSColorPanel (using NSColorWell) and NSFontPanel's color panel co-exist?

I have a preferences panel in my application in which I have a NSColorWell for setting some background color and a button which opens an NSFontPanel for choosing a font. The behavior I want to have is the following: When I click on the NSColorWell then drag over some color in the panel, I want it to change the background color in my "...

Customizing Cocoas NSFontPanel

What customization options are there for Cocoas NSFontPanel? The NSFontPanel accessible in iWork Pages has "Text Underline", "Text Strikethrough" and "Document Color" controls at the top. We don't want these in our NSFontPanel. Is there any way to remove or disable these controls? ...