• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting NSFontPanel color changes [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Getting NSFontPanel color changes [SOLVED]
      • From: Glen Low <email@hidden>
References: 
 >Re: Getting NSFontPanel color changes [SOLVED] (From: Glen Low <email@hidden>)

  • Prev by Date: Re: end of paragraph in NSTextView
  • Next by Date: Re: Fading in Windows
  • Previous by thread: Re: Getting NSFontPanel color changes [SOLVED]
  • Next by thread: Re: Getting NSFontPanel color changes [SOLVED]
  • Index(es):
    • Date
    • Thread