Here is the set up with views hierarch:
- A popover window
- a custom view
- an NSBox
- an NSView
- 4 radio buttons, aligned on left vertically
The radio buttons share the same IBAction (to get the radio button effect)
Here is the problem:
- the top most radio button draws with an outer blue circle
- if I move this button down, or if I hide it, then another one gets the circle
- If I select the button, the outer circle remains.
For thos this could interest or help.
I suspected a focus issue.
And found this
https://stackoverflow.com/questions/31867098/how-to-set-focus-to-an-nsbutton
So, when showing the NSPopover, I changed the focus to another button
thePopover.contentViewController?.view.window?.makeFirstResponder(anotherButton)