Re: How to use color in panther's Font Panel ?
Re: How to use color in panther's Font Panel ?
- Subject: Re: How to use color in panther's Font Panel ?
- From: Piers Uso Walter <email@hidden>
- Date: Wed, 12 Nov 2003 15:25:18 +0100
On 12. Nov 2003, at 14:55, Sergey Mastykash wrote:
You're right. But, if it's needed to change background color or
effects color (underline, strikethrough) ? This approach can only
change color of text.
Next problem that I'm not a final user, I'm programmer. So, it's not
the best way to force users use this method of color changing.
I do not think that the current text system allows for separate font,
strikethrough, and underline colors.
I'd be glad to stand corrected on this, though, so please keep me
informed if you find a way to separate these colors.
Regarding the question of how to intercept color panel actions
programmatically, I don't know because I've never tried doing that.
You write:
When, for example, user clicks font color button in font panel, color
panel appears. But changing color doesn't affect on my document,
because of font panel becomes first responder, and message changeColor
is sending to it, not to my View.
I think it behaves different if the user has selected text. I am not
sure about the exakt message flow but when you've selected text, all
font panel actions apply immediately to the selected text. I haven't
checked, though if this implies that the TextView becomes first
responder when text is selected. It would also possible that the text
view always is first responder but chooses to forward the event to the
font panel when no text is selected. Or that the TextView is a delegate
of the font panel and gets the message in this way. Using the debugger,
you should be able to find why color panel actions affect text
selections.
With kind regards
Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH
_______________________________________________
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.