• 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: Missing inactive and disabled states on some controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing inactive and disabled states on some controls


  • Subject: Re: Missing inactive and disabled states on some controls
  • From: Brock Brandenberg <email@hidden>
  • Date: Wed, 05 Feb 2003 13:47:34 -0600

Hi Justin.

> isEnabled and setEnabled are methods of NSControl, which NSTableView
> and NSBrowser inherit from, so you can use these methods for them. I'm
> not sure about NSBox though.

Yes, setEnabled: is present for the control subclasses, but it does nothing.
You must override it and implement your own behavior. They do not have a
behavior by default from Apple. While it was determined by Apple to be
acceptable in Cocoa, I find it odd that they don't have a default
implementation and am simply looking for a simple explanation since the
HIToolbox has implemented these behaviors for all of its controls.

Brock

----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Missing inactive and disabled states on some controls
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Missing inactive and disabled states on some controls (From: Justin Lundy <email@hidden>)

  • Prev by Date: Re: Link two nsmatrix
  • Next by Date: HTML Editor source
  • Previous by thread: Re: Missing inactive and disabled states on some controls
  • Next by thread: Re: Missing inactive and disabled states on some controls
  • Index(es):
    • Date
    • Thread