• 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
Isolate NSTextView from NSColorWell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Isolate NSTextView from NSColorWell


  • Subject: Isolate NSTextView from NSColorWell
  • From: Bernard Knaepen <email@hidden>
  • Date: Wed, 23 Jun 2010 08:49:18 +0200

Hi all,

I have a window created in IB containing a NSScrollView embedding a NSTextView. In the same window I have a NSColorWell which is supposed to store the color preference for a given object not related to the NSTextView.

I would like to be able to change the color of the NSColorWell without affecting the NSTextView at all. However, if I start to type in the text field and then click on the NSColorWell, I am able to change the color of the well but this also affects the color of the character that will be typed later on in the text field. In other words, the color panel changes the color of both the well and the text which is not what I want.

I spent a lot of time looking in the doc to isolate this NSColorWell from the NSTextView without finding a solution.

I would be grateful if someone could help me with this or point me to the relevant part of the documentation.

Thanks,

Bernard.


_______________________________________________

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: sqlite store created on OS X won't open on iOS
  • Next by Date: Re: Isolate NSTextView from NSColorWell
  • Previous by thread: Re: sqlite store created on OS X won't open on iOS
  • Next by thread: Re: Isolate NSTextView from NSColorWell
  • Index(es):
    • Date
    • Thread