]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/cocoa.m: Fix macOS 10.14 deprecation warnings
authorBrendan Shanks <brendan@bslabs.net>
Fri, 1 Feb 2019 07:12:25 +0000 (23:12 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Feb 2019 08:59:50 +0000 (09:59 +0100)
commit5e24600a7c1cb530c0fed3c699c4d08f16d69b8e
tree80687ab5ee056b056b3325ef79ec3b6e0bad1053
parenta981814a44ed4f2d7c6f0b3480e285a5b16dcee2
ui/cocoa.m: Fix macOS 10.14 deprecation warnings

macOS 10.14 deprecated NSOnState/NSOffState in favour of
NSControlStateValueOn/NSControlStateValueOff. Use the new constants,
and #define them to the old ones when compiling against a pre-10.13 SDK.
Also [NSGraphicsContext graphicsPort] is now deprecated, use
[NSGraphicsContext CGContext] when available.

Signed-off-by: Brendan Shanks <brendan@bslabs.net>
Message-id: 20190201071225.20576-1-brendan@bslabs.net
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m