• 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
Re: Dynamically changing UI properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically changing UI properties


  • Subject: Re: Dynamically changing UI properties
  • From: Finlay Dobbie <email@hidden>
  • Date: Tue, 30 Oct 2001 18:30:50 +0000

On Tuesday, October 30, 2001, at 06:18 pm, Dan Huntsinger wrote:

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?

Nope... Are you *SURE* the outlet is connected up right?

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?

Just setEnabled:YES or setEnabled:NO does the trick.

-- Finlay


References: 
 >Dynamically changing UI properties (From: Dan Huntsinger <email@hidden>)

  • Prev by Date: Re: how to change ower and setuid bit of a bundle application
  • Next by Date: Re: Context menu for minimised window
  • Previous by thread: Dynamically changing UI properties
  • Next by thread: Re: NSToolbar Sample
  • Index(es):
    • Date
    • Thread