]> git.proxmox.com Git - mirror_qemu.git/commit - ui/cocoa.m
cocoa: Avoid deprecated CPS* functions
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 22 Apr 2013 10:29:47 +0000 (10:29 +0000)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 28 May 2013 23:23:01 +0000 (01:23 +0200)
commit42a5dfe75f455fe7f3619ce44b7eb025ba631ee8
treebb862d47740e413230ee83fc939c98051aa15547
parent6e657e64cdc478461c1e6a5e81c6d23115664326
cocoa: Avoid deprecated CPS* functions

The functions CPSGetCurrentProcess and CPSEnableForegroundOperation
are deprecated in newer versions of MacOSX and cause warning messages
to be logged to the system log. Instead, use the new preferred method
of promoting our console process up to a graphical app with menubar
and Dock icon, which is TransformProcessType. (This function came
in with MacOSX 10.3, so there's no need to retain the old method as
we don't support anything earlier than 10.3 anyway.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
ui/cocoa.m