|Jan 31, 2013, 01:20 PM||#1|
changing color for a label
I am running Snow Leopard and running Xcode 4.0.
I am trying to change the color of text in a label, however I can't seem to get it to work.
I read the developer documentation, and when I use the line:
[myText setTextColor:<#(NSColor *)#>
Can someone tell me what I am supposed to do? I know that NSColor is looking for a pointer, but nothing I try seems to work.
Simple for others, perhaps, but I am just starting here.
UPDATE: I am getting closer. This doesn't work, but seems to be on track, if that seems right
[myText setTextColor:(NSColor *) redColor];
Last edited by azrael2000; Jan 31, 2013 at 02:11 PM.
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 08:23 AM.