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 protected]> 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 protected])

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/rsharp%40mac.com

This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/luca.pazzerello%40gmail.com

This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to