24 lines
605 B
Objective-C
24 lines
605 B
Objective-C
//
|
|
// LFDocumentController.m
|
|
// Localize Folder
|
|
//
|
|
// Created by Kim Wittenburg on 05.07.13.
|
|
// Copyright (c) 2013 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#import "LFDocumentController.h"
|
|
|
|
@implementation LFDocumentController
|
|
|
|
- (NSInteger)runModalOpenPanel:(NSOpenPanel *)openPanel forTypes:(NSArray *)types
|
|
{
|
|
// Allow the user only to open directories
|
|
openPanel.canChooseDirectories = YES;
|
|
openPanel.canChooseFiles = NO;
|
|
openPanel.treatsFilePackagesAsDirectories = NO;
|
|
openPanel.canCreateDirectories = YES;
|
|
return [super runModalOpenPanel:openPanel forTypes:types];
|
|
}
|
|
|
|
@end
|