Assign Radio Group to Radio Buttons
问题 I have several radio buttons I need to assign a radio group to it so that only one radio button is selectable at a time.There is no radio group option.I have tried Assigning a single action outlet to all buttons Putting all buttons in a custom view None of this works. 回答1: In the old days, NSMatrix was the class that provided the radio group behavior. If you look up the docs for that class, you'll find the following note: Use of NSMatrix is discouraged in apps that run in macOS 10.8 and later