Re: Set text color of text field
Re: Set text color of text field
- Subject: Re: Set text color of text field
- From: Matt Neuburg <email@hidden>
- Date: Wed, 28 Jun 2006 02:01:32 -0700
- Thread-topic: Set text color of text field
On Tue, 27 Jun 2006 13:15:24 -0600, Brad Bumgarner <email@hidden>
said:
>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."
When the compiler says something like, "warning: passing argument 1 of
'setTextColor:' makes pointer from integer without a cast," that's supposed
to tell you something. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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