Re: NSFontPanel selected font?
Re: NSFontPanel selected font?
- Subject: Re: NSFontPanel selected font?
- From: Andy Lee <email@hidden>
- Date: Mon, 2 Jul 2007 15:18:45 -0400
On Jul 2, 2007, at 2:51 PM, R.L. Grigg wrote:
I wrote a simple Cocoa app that has a Font menu item that brings up
the font panel. The user can select a font and dismiss the panel,
but how can I catch whatever callback or notification gets issued?
There seems to be no [fontPanel selectedFont] method, my -
changeFont: method never gets called, and NSFontManager returns nil
for selectedFont. The Apple doc on NSFontPanel doesn't say much.
All I'm trying to do is find out what font got selected; I'm not
changing or converting any fonts.
The Class Description for NSFontPanel says "The actual changes are
made through conversion messages sent to the shared NSFontManager
instance." The doc for the -changeFont: delegate method of
NSFontManager looks promising, but that's just a guess on my part.
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden