marioaguzman / toolbar

Programmatically constructing an NSToolbar
MIT License
249 stars 18 forks source link

Value of type 'NSToolbarItem' has no member 'possibleLabels' #3

Closed Gargo closed 2 years ago

Gargo commented 2 years ago

Can't run example:

if  #available(macOS 13.0, *) {
                toolbarItem.possibleLabels = ["Show", "Hide"]
            }
marioaguzman commented 2 years ago

If you're on Xcode 14 RC or Xcode 14, it does not have the macOS 13 Ventura SDK as per the release notes.

Here's the documentation: https://developer.apple.com/documentation/appkit/nstoolbaritem/3969243-possiblelabels?changes=_3_2&language=objc