Re: Disabled button looks like enabled
Re: Disabled button looks like enabled
- Subject: Re: Disabled button looks like enabled
- From: Dave DeLong <email@hidden>
- Date: Mon, 12 Jan 2009 11:35:54 -0700
So what you're saying is you want a button that doesn't do anything?
In that case, just don't hook the button's action up to anything...
Dave
Sent from my iPod
On Jan 12, 2009, at 11:32 AM, Donnie Lee <email@hidden> wrote:
That's not better than my way. I never need to handle events from
this button.
On Mon, Jan 12, 2009 at 9:28 PM, Dave DeLong <email@hidden>
wrote:
Then simply subclass NSButton, add an ivar called fakeEnabled, then
override
the mouseDown and mouseUp events to do the following:
...
Do the same for mouseUp, and just have a getter and setter for
fakeEnabled.
VoilĂ : a button that always looks enabled but can be set to respon
d only
part of the time.
_______________________________________________
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
_______________________________________________
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