Skip navigation.
 
mlRe: Adding a new type of NSButton
FROM : Marco Masser
DATE : Wed Jun 25 21:21:48 2008

> Once it is pushed it stays pushed - pushing it again does not revert 
> it back to unpushed state.


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

Marco

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