Added comment

This commit is contained in:
Michael Starke
2014-08-17 13:36:50 +02:00
parent f762f86938
commit 2bfcd4dd44

View File

@@ -62,6 +62,7 @@
[openPanel beginSheetModalForWindow:[[self view] window] completionHandler:^(NSInteger result) { [openPanel beginSheetModalForWindow:[[self view] window] completionHandler:^(NSInteger result) {
if(result == NSFileHandlingPanelOKButton) { if(result == NSFileHandlingPanelOKButton) {
// TODO: Autorelease pool?
NSMenuItem *customBrowser = [[NSMenuItem alloc] init]; NSMenuItem *customBrowser = [[NSMenuItem alloc] init];
[customBrowser setRepresentedObject:[[NSBundle bundleWithPath:[[openPanel URL] path]] bundleIdentifier]]; [customBrowser setRepresentedObject:[[NSBundle bundleWithPath:[[openPanel URL] path]] bundleIdentifier]];
[self _selectBrowser:customBrowser]; [self _selectBrowser:customBrowser];