diff options
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 |