I have 2 NSColorWells and 1 NSTextView.
The 1st colorWell displays the color the selected text.
The 2nd colorWell displays the "visited "color of the selected text ONLY if
this text contains a link. I have bound it to mLink.mVisitedColor.

In the textView method textViewDidChangeSelection: I set the current
selected mLink then the 2nd colorWell automatically displays the
mLink.mVisitedColor.

When the selected text has no link associated, the 2nd colorWell should
display a black color and be anyway always enabled.

The problem I get is that when the 2nd colorWell is active and the selected
text is not a link, it displays the color of the selected text. That comes
automatically if I set [textView setUsesFontPanel:YES];

I tried to set [textView setUsesFontPanel:NO];
In this case I cannot longer set the text color anymore using the 1st
colorWell.

How to get our from this trouble?


Regards
-- Leonardo


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to