On Jan 12, 2009, at 12:57 PM, Donnie Lee wrote:
"The button should be disabled by design. It don't intend to interact
with a user at all."

This is exactly the point Ricky was making. If a button never works
*by design*, a button is the wrong choice for a UI element

I don't like to discuss ideological part of the thing, I ask only
about a technical implementation.

you'd need to override the button's
drawing to always draw the enabled state, ignoring the control's
actual state.

Too "dirty" solution.

What's dirty about it? Note that as soon as you call a solution "dirty" you're dangerously close to discussing ideology.

You defined the problem as wanting a button that is disabled but looks enabled. You yourself said you want the button to draw as if it were enabled despite the fact that it is disabled. The above solution basically echoes your exact requirements, so if it is dirty, then your application design must also be dirty. Why is it not dirty to present a button whose appearance is a lie?

As others have already asked: what are you trying to accomplish? What is the usage scenario you are trying to achieve, and what is its purpose?

If you want a "better" answer (and there may not be one), you need to provide more context.

--Andy




Or, you could let the button allow clicking and simply
do nothing.

As I already did and asked about more beautiful ways. If there is no
more beautiful way -- not a big problem.

Donnie.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com

This email sent to ag...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to