sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
493 stars 76 forks source link

MacOS: deprecated warnings at runtime: setAllowedFileTypes #71

Open kevinchua6 opened 1 year ago

kevinchua6 commented 1 year ago
image
# github.com/sqweek/dialog/cocoa
dlg.m:96:10: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
daryl-williams commented 1 year ago

I have started getting this error and have no idea what it means. Any help would be greatly appreciated. If I can supply any more information please let me know. I am running MacOS 13.2.1 (22D68) on an M1 MacBook Air. My app backend is written in Golang and uses the Wails framework.

Thanks, Daryl