Re: Adding a new type of NSButton
Re: Adding a new type of NSButton
- Subject: Re: Adding a new type of NSButton
- From: Marco Masser <email@hidden>
- Date: Wed, 25 Jun 2008 21:21:48 +0200
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
_______________________________________________
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