Created
January 17, 2019 12:05
-
-
Save woojooin/581f514b8628e290a4450f7aafd9696c to your computer and use it in GitHub Desktop.
modal sheet open dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSOpenPanel* panel = [NSOpenPanel openPanel]; | |
[panel setMessage:@"Select Folder"]; | |
[panel setPrompt:@"Select"]; | |
[panel setCanChooseFiles:NO]; | |
[panel setCanChooseDirectories:YES]; | |
[panel beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) { | |
NSString* path = [[panel URL] path]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment