How does NSFontPanel work?
How does NSFontPanel work?
- Subject: How does NSFontPanel work?
- From: Huibert Aalbers <email@hidden>
- Date: Tue, 3 Jan 2006 15:19:49 -0600
Hi,
This is probably a silly question but I have been searching for
samples with no success.
I am writing a document based application. Each document displays data
using a single font. I want the user to be able to choose the font for
each document by using the Font Panel. I have added the Format Menu to
my app and I get the changeFont events when the user selects a new
Font. The problem is that when I switch documents the menu is not
updated automatically, which is logical since I am not using any text
components to draw the text but still leaves me wondering how to do
it.
I have tried [[NSFontManager sharedFontManager]
setSelectedFont:currentFont isMultiple:NO]; but it doesn't seem to
work.
Any ideas?
Regards,
Huibert Aalbers
--
Viisit my home page at http://www.huibert-aalbers.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden