sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
516 stars 78 forks source link

use setAllowedContentTypes instead of macOS 12.0 deprecated setAllowedFileTypes #83

Open nixinwang opened 8 months ago

nixinwang commented 8 months ago

allowedFileTypes is deprecated in macOS 12.0, use allowedContentTypes instead

nawivee commented 6 months ago

Any updates @sqweek ? I got this warning as well. It works for now. But I'm afraid with some coming MacOS updates the lib will stop working.

sqweek commented 6 months ago

As discussed in #82 the problem with these changes is they break compatibility with older OSX releases.

Ultimately I think dialog would benefit from some kind of backend selection mechanism, allowing users to choose between eg. gtk2 vs gtk3 or macOS 10.0 vs macOS 12.0 compatibility. However I'm not sure how to implement that without requiring additional imports (which breaks existing usage), and I don't spend much time with go programming these days so I'm unlikely to figure it out myself.