In the Dev Ctr documentation, I read about background color but I seem not able to change a textfield background in code (Yes, I can change it via the property panel). I'm using my experience with Java and Visual Basic, Visual C...etc, where it is very simple to do in code.
This is the line in my code - there are no errors but, I do get a warning that no setBackgroundColor method exits. FYI - I have changed the camel case so, this line is only one of several I tried.
In the Dev Ctr documentation, I read about background color but I seem not able to change a textfield background in code (Yes, I can change it via the property panel). I'm using my experience with Java and Visual Basic, Visual C...etc, where it is very simple to do in code.
This is the line in my code - there are no errors but, I do get a warning that no setBackgroundColor method exits. FYI - I have changed the camel case so, this line is only one of several I tried.
[TextField3 setBackgroundColor:(NSColor *)blueColor];
Also tried:
[TextField3 backgroundColor: (NSColor *)blueColor];
That didn't work either. The more I try Obj-C, the more I like Java!
How to change the color in code?
Submitted by Anonymous (not verified) on Mon, 12/07/2009 - 18:59.Thanks and great job on this site!