• 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
Changing background color of a textview using colorwell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing background color of a textview using colorwell?


  • Subject: Changing background color of a textview using colorwell?
  • From: rethish <email@hidden>
  • Date: Tue, 02 Jun 2009 12:47:00 +0530
  • Thread-topic: Changing background color of a textview using colorwell?

Hi,

I use a nscolorwell to change the back ground color of a nstextview.
I use an action method to do this task.

When I click the colorwell for the first time, the color panel window opens
and if I type in textview ,  the text color will be of the colorwell¹s
default color.

Is this colorwell default behaviour?

And if I select any color from the color panel the background color changes
and if type
In textview, the text will also appear in the same color., which makes the
text invisible.


I only want to change the back ground color of the textview.

Here is what I did:

-(IBAction)bgColwelaction:(id)sender
{

    [textView setBackgroundColor:[bgColorwell color]];

}

Is anything missing?

Thank you in advance..

Rethish.
_______________________________________________

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: Changing background color of a textview using colorwell?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Odd crash only when Toast running
  • Next by Date: Re: Changing background color of a textview using colorwell?
  • Previous by thread: Re: Can't set header on NSURLRequest
  • Next by thread: Re: Changing background color of a textview using colorwell?
  • Index(es):
    • Date
    • Thread