Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove blue shadow of NSButton

Always (programmatically or via IB) i get this blue shadow on the first set button:

blue shadow

I want to get rid of it.. how?

like image 714
Diego Torres Avatar asked May 23 '11 04:05

Diego Torres


1 Answers

That's called the focus ring, and it's to visually indicate which view is the first responder for key events.

If you don't want it to show up, you can use the -[NSView setFocusRingType:] method with the NSFocusRingTypeNone constant. This is also settable in Interface Builder.

like image 111
Dave DeLong Avatar answered Sep 28 '22 06:09

Dave DeLong