• 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
Re: Set text color of text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set text color of text field


  • Subject: Re: Set text color of text field
  • From: Julio Cesar Silva dos Santos <email@hidden>
  • Date: Tue, 27 Jun 2006 16:29:50 -0300

The setTextColor parameter expects an NSColor so it must be this way:

[imageOffset setTextColor:[NSColor redColor]];

Julio Cesar Silva dos Santos
email@hidden
Blogjective-C
http://www.jcs.santos.nom.br/wp
FetchYourLyrics
http://www.jcs.santos.nom.br/fyl/fyl.html



On 27/06/2006, at 16:15, Brad Bumgarner wrote:

I would like to set the text color of the text of a NSTextField. I know I need to use the "setTextColor:" method. I would like to be able to set it to red (to indicate an error) or black (normal condition). What I have tried (below) doesn't work:


[imageOffset setTextColor: redColor];


I think the problem is with "redColor." An example of the proper way of doing this would be greatly appreciated.


Thanks,
Brad Bumgarner, CTA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Set text color of text field (From: Brad Bumgarner <email@hidden>)

  • Prev by Date: Set text color of text field
  • Next by Date: Re: Full screen tiny issue
  • Previous by thread: Set text color of text field
  • Next by thread: RE: Set text color of text field
  • Index(es):
    • Date
    • Thread