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

macOS deprecation warning about setAllowedFileTypes #98

Open
jminor opened this issue Dec 26, 2024 · 1 comment
Open

macOS deprecation warning about setAllowedFileTypes #98

jminor opened this issue Dec 26, 2024 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jminor
Copy link
Member

jminor commented Dec 26, 2024

On recent macOS builds, there is a deprecation warning about setAllowedFileTypes as used in the nativefiledialog (nfd) dependency. Is that fixed in a newer ndf version? This is the only warning when building on macOS.

/Users/jminor/git/raven/libs/nativefiledialog/src/nfd_cocoa.m:56:17: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
   56 |         [dialog setAllowedFileTypes:allowedFileTypes];
      |                 ^
/Applications/Xcode-16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:286:49: note: property 'allowedFileTypes' is declared deprecated here
  286 | @property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
      |                                                 ^
@jminor jminor added help wanted Extra attention is needed good first issue Good for newcomers labels Dec 26, 2024
@darbyjohnston
Copy link
Contributor

The latest version of NFD, v1.2.1, still has the same warning (I also use NFD for toucan/tlRender).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants