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
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 mails | Author | Date |
|---|---|---|
| Brad Bumgarner | Jun 27, 21:15 | |
| Julio Cesar Silva… | Jun 27, 21:29 | |
| Vinay Prabhu | Jun 28, 06:54 | |
| Matt Neuburg | Jun 28, 11:01 | |
| Brad Bumgarner | Jun 28, 15:46 |






Cocoa mail archive

