RE: Set text color of text field
RE: Set text color of text field
- Subject: RE: Set text color of text field
- From: Vinay Prabhu <email@hidden>
- Date: Wed, 28 Jun 2006 10:24:33 +0530
- Importance: Normal
you can use NSFormatter for this purpose...
-----Original Message-----
From: cocoa-dev-bounces+vinayprabhu=email@hidden
[mailto:cocoa-dev-bounces+vinayprabhu=email@hidden]On
Behalf Of Brad Bumgarner
Sent: Wednesday, June 28, 2006 12:45 AM
To: Cocoa-Dev Mail Cocoa-Dev Mail List
Subject: Set text color of text field
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:
in
This email sent to email@hidden
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
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