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: Gideon King <email@hidden>
- Date: Fri, 9 Apr 2004 07:23:03 +1000
Thanks for the suggestion, but it is a custom view, so this doesn't
work (even if I implement the methods in my view).
The best suggestion I have had so far is to set the target and action
of the color panel manually, and then have logic in my application to
determine what the context is in order to process the color change
appropriately. This would be pretty difficult to do in my application,
so am still looking for a better solution.
Gideon
On Friday, April 9, 2004, at 03:20 AM, Scott Thompson wrote:
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.
_______________________________________________
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.