diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-04-22 10:29:48 +0000 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2013-05-29 01:24:38 +0200 |
commit | 8bb3f1e3742ca8d26af7156e14068435437918a1 (patch) | |
tree | 1f693f26f352da52d4fe0b26827b1a7ad9d495a6 /ui/cocoa.m | |
parent | 42a5dfe75f455fe7f3619ce44b7eb025ba631ee8 (diff) | |
download | qemu-8bb3f1e3742ca8d26af7156e14068435437918a1.zip qemu-8bb3f1e3742ca8d26af7156e14068435437918a1.tar.gz qemu-8bb3f1e3742ca8d26af7156e14068435437918a1.tar.bz2 |
cocoa: Avoid deprecated NSOpenPanel filename method
Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6)
in favour of using the URL method and extracting the path from the
resulting NSUrl object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r-- | ui/cocoa.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -810,7 +810,7 @@ QemuCocoaView *cocoaView; exit(0); } else if(returnCode == NSOKButton) { const char *bin = "qemu"; - char *img = (char*)[ [ sheet filename ] cStringUsingEncoding:NSASCIIStringEncoding]; + char *img = (char*)[ [ [ sheet URL ] path ] cStringUsingEncoding:NSASCIIStringEncoding]; char **argv = (char**)malloc( sizeof(char*)*3 ); |