After my post, I found NSPopUpButton (or NSButton) has a private API named semanticContext for this purpose. Though, I can’t use it since my app is distributed in the App Store... cf. https://stackoverflow.com/questions/79593493/how-to-achieve-grouped-form-styled-controls-using-appkit/79607626#79607626
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: