• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
setUsesFontPanel:NO for a given NSColorWell only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSSharingService with Animated GIFs?
  • Next by Date: Re: Share and store RSA - public key in java server and vice versa
  • Previous by thread: Re: Opinion: Core Data or roll my own?
  • Next by thread: 'nuther dumb question
  • Index(es):
    • Date
    • Thread