• 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: Adding a new type of NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a new type of NSButton


  • Subject: Re: Adding a new type of NSButton
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 25 Jun 2008 15:24:37 -0400

> You could simply hook up an appropriate kind of a standard NSButton to an
> IBAction that disables the button. That way, you can't click it anymore and
> it stays pushed.

  Some sort of 'disabled' look is probably preferable, else users are
going to be very frustrated when they can't click a button that looks
like it should be clickable. I know I would. Snarf the freezlehopper
indeed!

> If you don't want it to be grayed out upon disabling, you could maybe
> subclass NSButton and find out which method gets called to draw a disabled
> button and overwrite that (I never did that and there's probably a more
> elegant solution for this).

  You probably mean "override". Terminology is important in technical matters.

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Adding a new type of NSButton (From: P Teeson <email@hidden>)
 >Re: Adding a new type of NSButton (From: Marco Masser <email@hidden>)

  • Prev by Date: Re: Adding a new type of NSButton
  • Next by Date: Re: SetControlReference equivalent in NSControl?
  • Previous by thread: Re: Adding a new type of NSButton
  • Next by thread: Re: Adding a new type of NSButton
  • Index(es):
    • Date
    • Thread