Skip navigation.
 
mlRe: Set text color of text field
FROM : Julio Cesar Silva dos Santos
DATE : Tue Jun 27 21:29:50 2006

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

[imageOffset setTextColor:[NSColor redColor]];

Julio Cesar Silva dos Santos
<email_removed>
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

Related mailsAuthorDate
mlSet text color of text field Brad Bumgarner Jun 27, 21:15
mlRe: Set text color of text field Julio Cesar Silva… Jun 27, 21:29
mlRE: Set text color of text field Vinay Prabhu Jun 28, 06:54
mlRe: Set text color of text field Matt Neuburg Jun 28, 11:01
mlRe: Set text color of text field Brad Bumgarner Jun 28, 15:46