diff options
author | sr55 <[email protected]> | 2013-06-01 21:39:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-06-01 21:39:49 +0000 |
commit | 1d0553ef556d8979e0c4897cd77a5d6ceaec8221 (patch) | |
tree | 404ccc522ad9ddfb045fd51d2b5fe43deefe1749 /macosx/HBPreferencesController.m | |
parent | 0c65f4f74c61edb71ef7fbb03be0e0b3c932d810 (diff) |
MacGUI: Patch -Replace some deprecated API Calls https://reviews.handbrake.fr/r/504/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5543 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r-- | macosx/HBPreferencesController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index 4e5baccd1..d7d52d2c2 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -170,10 +170,10 @@ { sendToAppDirectory = @"/Applications"; } - [panel beginSheetForDirectory: sendToAppDirectory file: nil types: nil - modalForWindow: [self window] modalDelegate: self - didEndSelector: @selector( browseSendToAppDone:returnCode:contextInfo: ) - contextInfo: sender]; + [panel setDirectoryURL:[NSURL fileURLWithPath:sendToAppDirectory]]; + [panel beginSheetModalForWindow:[self window] completionHandler:^(NSInteger result) { + [self browseSendToAppDone:panel returnCode:(int)result contextInfo:sender]; + }]; } - (void) browseSendToAppDone: (NSOpenPanel *) sheet |