• 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 font color change messages in view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting font color change messages in view


  • Subject: Re: Getting font color change messages in view
  • From: Scott Thompson <email@hidden>
  • Date: Thu, 8 Apr 2004 12:20:42 -0500

On Apr 7, 2004, at 6:19 PM, Gideon King wrote:

I have a view where I want to pick up all the changes to a font.

I use the changeFont: method to pick up font changes, but when I change the font color using the color panel opened by the font panel, I get no changeFont: messages. I also tried using changeColor:, but that only gets called when the color panel was *not* opened from the font panel.

TextFields pick up the colors as they are changed, so there is obviously some sort of message or notification being sent, but I can't see it mentioned anywhere in the documentation. The only other related posting I have seen in the archives is someone else asking the same question - does anyone have an answer?


Are you using a custom view or something like an NSTextView? With NSTextView when the color of the text changes you can catch it in either "textView:shouldChangeTextInRange:replacementString" or "textDidChange:"

Scott
_______________________________________________
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 font color change messages in view
      • From: Gideon King <email@hidden>
References: 
 >Getting font color change messages in view (From: Gideon King <email@hidden>)

  • Prev by Date: Re: a question about Pantomime
  • Next by Date: Re: a question about Pantomime
  • Previous by thread: Re: Getting font color change messages in view
  • Next by thread: Re: Getting font color change messages in view
  • Index(es):
    • Date
    • Thread