I use an NSSegmentedControl "on top of" an NSBox in my App in a couple of places. (Text only, no images) In Light Mode, the control draws on top of the lines of the NSBox so it looks like the lines go behind the Control. The unselected segments are white (probably opaque) and it covers up the box lines. In Dark Mode however, it looks like the *un*selected segments are now transparent and so the lines from the NSBox show thru the unselected segments. The selected segment is completely opaque though and so the NSBox line isn't seen.
What's the best way to "override" this transparency to get the same Light mode behaviour? I was hoping that I could assign a CA layer property/filter of some sort to have it always draw opaque? Or is my only solution to subclass and write my own drawRect:? Or?