Re: Getting NSFontPanel color changes [SOLVED]
Re: Getting NSFontPanel color changes [SOLVED]
- Subject: Re: Getting NSFontPanel color changes [SOLVED]
- From: Douglas Davidson <email@hidden>
- Date: Mon, 26 Apr 2004 13:38:41 -0700
On Apr 26, 2004, at 1:53 AM, Glen Low wrote:
Apparently the NSFontPanel sends an undocumented
setColor:forAttribute: message to the responder chain, where the first
param is an NSColor and the second is a NSString which has the
attribute name to change (either color or background color).
Interestingly enough, none of the AppKit actually seem to declare this
message (by doing an otool -ov AppKit | grep "setColor" | get
"forAttribute") ... I only found it by overriding "respondsToSelector"
to see what methods the NSFontPanel was probing for.
Note that our intent in future is for color changes to go through
public mechanisms, namely changeColor: for the foreground color,
changeDocumentBackgroundColor: for the document background color, and
changeAttributes: for other colors. The latter two methods are new in
Panther and are documented in the Panther release notes. We simply
didn't get the font panel changes hooked up to them for Panther.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.