]> git.proxmox.com Git - mirror_qemu.git/commit - ui/cocoa.m
ui/cocoa: Suppress NSFileHandlingPanelOKButton deprecation warning
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 29 May 2018 18:15:23 +0000 (19:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 May 2018 18:39:02 +0000 (19:39 +0100)
commitb5725385d17c876a12aa176a4a436d32d34ed06d
tree46d85e394a380e79dc4af2d9e80cc9aef5ea2bd5
parente609fa71e89c81fbe2670411be62da95dfb093e0
ui/cocoa: Suppress NSFileHandlingPanelOKButton deprecation warning

OSX 10.13 deprecates the NSFileHandlingPanelOKButton constant, and
would rather you use NSModalResponseOK, which was introduced in OS 10.9.
Use the recommended new constant name, with a backward compatibility
define if we're building on an older OSX.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: John Arbuckle <programmingkidx@gmail.com>
Message-id: 20180529181523.19185-1-peter.maydell@linaro.org
ui/cocoa.m