[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)
All these work for me (10.5.1)
what am i missing here?
You're going to have to post more info (e.g. what OS you're using).
Also, what type is myTextField? Custom subclass? What container
object(s) is the text field placed into?