Erik Sapir
Erik Sapir

Reputation: 24767

Why the text of a disabled NSButton (or NSButtonCell) is gray?

When i set a Button (NSButton) to be disabled, its text color changes to gray. How can i modify this property? I want the text to stay black.

Upvotes: 2

Views: 764

Answers (2)

cxa
cxa

Reputation: 4248

try setTitleColor:forState:, and pass UIControlStateDisabled for the last argument.

Upvotes: 0

pavium
pavium

Reputation: 15128

To answer your Title if not the body of the question: it's practically an industry standard to represent disabled screen elements this way, and probably what users expect.

To do something different might be confusing.

Upvotes: 3

Related Questions