Re: Getting font color change messages in view
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.