You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I get it now, I was confused at first because I read allowedFileTypes and allowedContentTypes as the same thing, but your issue is of course that objc2-app-kit does not expose the recommended alternative.
I have fixed this in c85f91e, in the meantime you can do something like:
use objc2_app_kit::NSSavePanel;use objc2_uniform_type_identifiers::UTType;pubfnallowedContentTypes(panel:&NSSavePanel) -> Retained<NSArray<UTType>>{unsafe{msg_send_id![panel, allowedContentTypes]}}
NSSavePanel::allowedFileTypes
is deprecated and removed from the Apple documents.The text was updated successfully, but these errors were encountered: