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: Sergey Mastykash <email@hidden>
- Date: Wed, 12 Nov 2003 16:33:26 +0200
1. If you're using panther, you can test separate color change in
default TextEdit.
2. I'm not using text View. There is document view, that contains all
object like text, images etc. Text object exist only in my document
view, and there is no separate view for it.
On Nov 12, 2003, at 4:17 PM, Piers Uso Walter wrote:
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. If this
means that the TextView becomes first responder when text is selected,
I haven't checked, though.
It's 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.