• 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 on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField setTextColor not working on Tiger


  • Subject: NSTextField setTextColor not working on Tiger
  • From: James Walker <email@hidden>
  • Date: Wed, 25 Mar 2009 18:05:44 -0700

I was trying to make a static text item look dimmed like so:

NSColor* newColor = [[theField textColor]
	colorWithAlphaComponent: (mIsEnabled? 1.0f : 0.5f) ];
[theField setTextColor: newColor ];

It works fine on Leopard, but on Tiger, the text stays stubbornly black. Why?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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


  • Prev by Date: Re: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
  • Next by Date: Re: GetProcessBundleLocation() -- no good in background agents!
  • Previous by thread: Re: GetProcessBundleLocation() -- no good in background agents!
  • Next by thread: Reading one line at a time using NSFileHandle
  • Index(es):
    • Date
    • Thread