mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
42a5dfe75f
commit
8bb3f1e374
ui
|
@ -810,7 +810,7 @@ QemuCocoaView *cocoaView;
|
||||||
exit(0);
|
exit(0);
|
||||||
} else if(returnCode == NSOKButton) {
|
} else if(returnCode == NSOKButton) {
|
||||||
const char *bin = "qemu";
|
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 );
|
char **argv = (char**)malloc( sizeof(char*)*3 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue