NSTextField setTextColor: not working as expected
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