NSButton without "click highlighting"
Asked Answered
A

1

7

I've got an NSButton with an image (and no text), over a blueish background. The Style is "Square", type is "Momentary Push In", not bordered etc.

When I click the button, there is a light rect around it, which is highlighted for a second. How do I get rid of it?

I only want to have the image displayed and when clicked there shouldn't be any highlight indication… Should I subclass the button or is there a simple setting in Interface Builder?

Not clicked – normal state: NSButton normal state

Clicked - highlighted: highlighted NSButton when clicked

so I don't want that highlighting rect ;-)

Andesite answered 15/1, 2012 at 14:55 Comment(0)
M
13

You need to set the cell's highlightsBy property. See Borderless NSButton turns gray when clicked for some more info.

Marin answered 5/3, 2012 at 2:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.