• 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
NSColorWell with NSTextView-------need help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorWell with NSTextView-------need help


  • Subject: NSColorWell with NSTextView-------need help
  • From: rethish <email@hidden>
  • Date: Wed, 31 Dec 2008 14:44:57 +0530

Hi all,


In my application I use two instance of nscolorwell, one for foreground
color (which is a default one) and second one for setting the background
color.
For setting the background color I used the code:

[textview setBackgroundColor:[colorwel color]];

This works upto some extend,the background color is changed ,if the
nscolorwell is clicked without selecting a range from the nstextview.

The problem is ,when we select a range of text from the nstextview and click
the nscolorwell (background instance) the text color also is changed .(ie
the text color and background color become same )

I want to set background color alone upto some range.


Please help

Happy New Year


Thanks in advance



_______________________________________________

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

  • Follow-Ups:
    • Re: NSColorWell with NSTextView-------need help
      • From: Ross Carter <email@hidden>
  • Prev by Date: Re: Storing NSDocument data in packages/bundles
  • Next by Date: Re: Storing NSDocument data in packages/bundles
  • Previous by thread: Re: Storing NSDocument data in packages/bundles
  • Next by thread: Re: NSColorWell with NSTextView-------need help
  • Index(es):
    • Date
    • Thread