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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to