• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dynamically changing UI properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Dynamically changing UI properties
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: NSToolbar Sample
  • Next by Date: Re: NSToolbar Sample
  • Previous by thread: Re: NSToolbar Sample
  • Next by thread: Re: Dynamically changing UI properties
  • Index(es):
    • Date
    • Thread