]> Git Repo - qemu.git/commit - ui/cocoa.m
ui/cocoa: Fix openFile: deprecation on Big Sur
authorRoman Bolshakov <[email protected]>
Sat, 2 Jan 2021 15:07:21 +0000 (18:07 +0300)
committerPeter Maydell <[email protected]>
Tue, 12 Jan 2021 21:19:02 +0000 (21:19 +0000)
commit1ff5a063d60c7737de11465516331b8ca8700865
treecca172d99d56088dd2b6cc494e6051ddd21809f6
parent828d651c585c1c2a2b8d4e67da36c9f91124855a
ui/cocoa: Fix openFile: deprecation on Big Sur

ui/cocoa.m:1188:44: warning: 'openFile:' is deprecated: first deprecated in macOS 11.0 - Use -[NSWorkspace openURL:] instead.
      [-Wdeprecated-declarations]
        if ([[NSWorkspace sharedWorkspace] openFile: full_file_path] == YES) {
                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:350:1: note:
      'openFile:' has been explicitly marked deprecated here
- (BOOL)openFile:(NSString *)fullPath API_DEPRECATED("Use -[NSWorkspace openURL:] instead.", macos(10.0, 11.0));
^

Signed-off-by: Roman Bolshakov <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-id: 20210102150718[email protected]
Signed-off-by: Peter Maydell <[email protected]>
ui/cocoa.m
This page took 0.025613 seconds and 4 git commands to generate.