Permalink
Browse files

mac gui: fix use of deprecated method

  • Loading branch information...
1 parent bfb2d2c commit 0df75bf5cfb2f6be5589bf9d3968f549837a1702 @bradallred bradallred committed Jul 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 apple/CocoaWrapper/mac/CocoaWrapper.mm
@@ -127,7 +127,7 @@ - (IBAction)openGame:(id) __unused sender
[op setMessage:@"Select a folder containing an IE game (has a chitin.key)."];
[op setPrompt:@"Select Game"];
if ([op runModal] == NSFileHandlingPanelOKButton) { //blocks till user selection
- [self application:NSApp openFile:[op filename]];
+ [self application:NSApp openFile:op.URL.path];
}
}

0 comments on commit 0df75bf

Please sign in to comment.