Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Mac を初めて使います。nsbutton を実装しています。1 つは有効モードで、もう 1 つは無効状態の 2 つのイメージがあります。有効と無効に基づいてイメージを変更したい ([button setEnabled:YES])、どうすればよいですか? 、
クラス setImage:のメソッドを使用します。NSButton
setImage:
NSButton
[button setImage:anImage];