File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1717@implementation PBRepositoryDocumentController
1818// This method is overridden to configure the open panel to only allow
1919// selection of directories
20- - (NSInteger )runModalOpenPanel : (NSOpenPanel *)openPanel forTypes : (NSArray *)extensions
21- {
20+ - (void )beginOpenPanel : (NSOpenPanel *)openPanel forTypes : (NSArray <NSString *> *)inTypes completionHandler : (void (^)(NSInteger ))completionHandler {
2221 [openPanel setCanChooseFiles: YES ];
2322 [openPanel setCanChooseDirectories: YES ];
2423 [openPanel setAllowedFileTypes: [NSArray arrayWithObject: @" git" ]];
25- return [openPanel runModal ];
24+
25+ NSModalResponse response = [openPanel runModal ];
26+
27+ completionHandler (response);
2628}
2729
2830- (id )makeUntitledDocumentOfType : (NSString *)typeName error : (NSError *__autoreleasing *)outError {
You can’t perform that action at this time.
0 commit comments