diff options
author | Brendan Shanks <brendan@bslabs.net> | 2019-01-31 23:12:25 -0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-05 09:59:50 +0100 |
commit | 5e24600a7c1cb530c0fed3c699c4d08f16d69b8e (patch) | |
tree | 80687ab5ee056b056b3325ef79ec3b6e0bad1053 /LICENSE | |
parent | a981814a44ed4f2d7c6f0b3480e285a5b16dcee2 (diff) |
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>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions