Enable/Disable Toolbar Item

I have a couple of toolbar Items for a macOS Xcode 11/12 app. I would like to set the toolbar items initially as disable and when a row is selected in a tableview enable them.

I have seen several posts like the following:
Disable/Enable Toolbar Item

Is this still the only was even with Xcode 12 and updates to swift? It sure seems by now there would be an easy way to enable/disable a toolbar item and not dependent on a timer pop??

Terms of Service

Privacy Policy

Cookie Policy