JWood
JWood

Reputation: 2824

Make NSButton blue (default)

How can I make an NSButton light up blue (ie. default) in Xcode 4? I've been trying various options in the interface builder but nothing seems to work. I've even tried setting the key equivalent to enter which also doesn't work.

Any idea?

Upvotes: 2

Views: 1469

Answers (1)

Allen Liu
Allen Liu

Reputation: 61

swift:

@IBOutlet var testBtn: NSButton!
testBtn.keyEquivalent = "\r"

Upvotes: 6

Related Questions