• 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: 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

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

  • Prev by Date: Executing non objective-c code in a loaded bundle
  • Next by Date: Re: Executing non objective-c code in a loaded bundle
  • Previous by thread: Re: Set text color of text field
  • Next by thread: Re: Set text color of text field
  • Index(es):
    • Date
    • Thread