setUsesFontPanel:NO for a given NSColorWell only
setUsesFontPanel:NO for a given NSColorWell only
- Subject: setUsesFontPanel:NO for a given NSColorWell only
- From: Leonardo <email@hidden>
- Date: Fri, 16 May 2014 19:08:21 +0200
- Thread-topic: setUsesFontPanel:NO for a given NSColorWell only
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 (email@hidden)
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:
This email sent to email@hidden