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

  • Follow-Ups:
    • Re: Set text color of text field
      • From: Brad Bumgarner <email@hidden>
  • Prev by Date: Re: One of the children has a bad / missing connection
  • Next by Date: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • Previous by thread: RE: Set text color of text field
  • Next by thread: Re: Set text color of text field
  • Index(es):
    • Date
    • Thread