Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use setAllowedContentTypes instead of macOS 12.0 deprecated setAllowedFileTypes #83

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nixinwang
Copy link

allowedFileTypes is deprecated in macOS 12.0, use allowedContentTypes instead

@nawivee
Copy link

nawivee commented May 21, 2024

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
Copy link
Owner

sqweek commented May 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants