Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
- Subject: Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
- From: Graham Cox <email@hidden>
- Date: Wed, 17 Sep 2008 09:50:26 +1000
On 17 Sep 2008, at 4:46 am, Preston Jackson wrote:
[[NSFontManager sharedFontManager] setTarget:self] only sets the
target to the changeFont: method. Alternatively, you can put
changeFont: in the responder chain it will get called without having
to explicitly set the target of the shared NSFontManager.
I'm receiving changeFont: messages fine, and that works no problem.
The changeAttributes: method is called on the NSTextView (or your
sublcass of it). I believe this message will also be passed up the
responder chain if the NSTextView doesn't consume it.
I'm not using a text view directly, but I do have attributed text that
could take advantage of the Font Panel's UI if this worked. Since I'm
trying to receive this in a dialog that has text fields, I wonder if
the message is being consumed by the field editor or one of my fields.
That's still a bug! What would seem to make sense is that setTarget on
NSFontManager should set the target for all changexxx messages it sends.
Anyway I filed a bug report, let's see if that gets any response.
Graham
_______________________________________________
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