• 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
NSTextField setTextColor: not working as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField setTextColor: not working as expected


  • Subject: NSTextField setTextColor: not working as expected
  • From: "charlie" <email@hidden>
  • Date: Mon, 31 Dec 2007 05:50:02 +0000



this works:

[myTextField setTextColor:[NSColor redColor]];



this doesn't work:

[myTextField setTextColor:[[NSColor redColor] colorWithAlphaComponent:0.5]];
(result is plain red, ignoring alpha)



this doesn't work:

[myTextField setTextColor:[NSColor colorWithCalibratedRed:0.123 green:0.456 blue:0.789 alpha:1.0]];
(result is black, regardless of what the individual components are set to)




what am i missing here?

thanks.

- chuck



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextField setTextColor: not working as expected
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Bindings and object-pointer keys
  • Next by Date: Re: Source list tree nodes able to represent different entities
  • Previous by thread: NSTreeController/NSBrowser Crash (with link to example project that demonstrates the issue)
  • Next by thread: Re: NSTextField setTextColor: not working as expected
  • Index(es):
    • Date
    • Thread