Re: Disabled button looks like enabled
Re: Disabled button looks like enabled
- Subject: Re: Disabled button looks like enabled
- From: "Donnie Lee" <email@hidden>
- Date: Mon, 12 Jan 2009 20:10:26 +0300
I again forgot that "reply" button reply to sender not to the list,
crazy lists.apple.com! Here is my answer to Ricky:
"The button should be disabled by design. It don't intend to interact
with a user at all."
Cocoa Developers <email@hidden>
On Mon, Jan 12, 2009 at 7:34 PM, Luca <email@hidden> wrote:
> I agree with Ricky. Why do you need this?
> By the way, think the better way is to subclass the NSButton, overriding the
> -mouseDown method. Do not call -[super mouseDown:], and it's done - your
> button will not be drawed.
>
> -- Luca C.
>
> On 12 Jan 09, at 13:46, Ricky Sharp wrote:
>
>> Do not do this. Users will be very frustrated when they cannot interact
>> with that button.
>>
>> Why do you think you need this?
>>
>> Sent from my iPhone
>>
>> On Jan 12, 2009, at 5:55 AM, Donnie Lee <email@hidden> wrote:
>>
>>> Hi!
>>>
>>> I'd like to create a disabled button that looks like enabled. If I
>>> just set enabled to "no", I got grayed button. Instead I do
>>> [[theButton cell] setHighlightsBy:NSNoCellMask]; and it looks like
>>> disabled but continues to receive events. Is there a way to make a
>>> disabled button that looks like enabled? Thanks in advance!
>>>
>>> Donnie.
>>> _______________________________________________
>>>
>>> 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
>
>
> _______________________________________________
>
> 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