Skip navigation.
 
mlRe: Adding a new type of NSButton
FROM : I. Savant
DATE : Wed Jun 25 21:24:37 2008

> 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.

Related mailsAuthorDate
mlAdding a new type of NSButton P Teeson Jun 25, 21:12
mlRe: Adding a new type of NSButton Marco Masser Jun 25, 21:21
mlRe: Adding a new type of NSButton I. Savant Jun 25, 21:22
mlRe: Adding a new type of NSButton I. Savant Jun 25, 21:24
mlRe: Adding a new type of NSButton Kevin Elliott Jun 25, 22:13
mlRe: Adding a new type of NSButton I. Savant Jun 25, 22:26
mlRe: Adding a new type of NSButton Andy Lee Jun 25, 22:32
mlRe: Adding a new type of NSButton Andy Lee Jun 25, 23:10
mlRe: Adding a new type of NSButton P Teeson Jun 25, 23:44
mlRe: Adding a new type of NSButton P Teeson Jun 25, 23:54
mlRe: Adding a new type of NSButton P Teeson Jun 26, 00:01
mlRe: Adding a new type of NSButton Hamish Allan Jun 26, 00:37
mlRe: Adding a new type of NSButton P Teeson Jun 26, 01:16
mlRe: Adding a new type of NSButton I. Savant Jun 26, 15:29
mlRe: Adding a new type of NSButton I. Savant Jun 26, 15:33
mlRe: Adding a new type of NSButton Andy Lee Jun 26, 16:51
mlRe: Adding a new type of NSButton I. Savant Jun 26, 17:02
mlRe: Adding a new type of NSButton Kevin Elliott Jun 26, 18:13
mlRe: Adding a new type of NSButton I. Savant Jun 26, 18:33