Dynamically changing UI properties
Dynamically changing UI properties
- Subject: Dynamically changing UI properties
- From: Dan Huntsinger <email@hidden>
- Date: Tue, 30 Oct 2001 10:18:33 -0800
I just joined this list so if this has been covered recently maybe someone
can direct me to the answer...
My first question has to do with Text Fields. I have a text field in my
program that I would like to "disable" by making it un-selectable and
un-editable as a response to an action, so I have the code:
[textField setEditable:NO];
[textField setSelectable:NO];
The outlet to the Text Field here is called "textField". For some reason
the above code isn't doing what I want it to. Is there something I need to
do extra to "update" the window so that the text field will indeed be
un-editable and un-selectable?
My second question is about enabling and disabling buttons to the user by
"graying" them out. I'm guessing you might be able to do this with
NSUserInterfaceValidation or NSUserInterfaceItem, but I'm not quite up to
speed with these with my current knowledge and skills. Is there an easier
way?
Thanks guys,
Dan