|
@@ -93,7 +93,6 @@ void SetupDialog(NSSavePanel* dialog,
|
|
|
|
|
|
void SetupDialogForProperties(NSOpenPanel* dialog, int properties) {
|
|
|
[dialog setCanChooseFiles:(properties & FILE_DIALOG_OPEN_FILE)];
|
|
|
- [dialog setTreatsFilePackagesAsDirectories:YES];
|
|
|
if (properties & FILE_DIALOG_OPEN_DIRECTORY)
|
|
|
[dialog setCanChooseDirectories:YES];
|
|
|
if (properties & FILE_DIALOG_CREATE_DIRECTORY)
|
|
@@ -104,6 +103,8 @@ void SetupDialogForProperties(NSOpenPanel* dialog, int properties) {
|
|
|
[dialog setShowsHiddenFiles:YES];
|
|
|
if (properties & FILE_DIALOG_NO_RESOLVE_ALIASES)
|
|
|
[dialog setResolvesAliases:NO];
|
|
|
+ if (properties & FILE_DIALOG_TREAT_PACKAGE_APP_AS_DIRECTORY)
|
|
|
+ [dialog setTreatsFilePackagesAsDirectories:YES];
|
|
|
}
|
|
|
|
|
|
// Run modal dialog with parent window and return user's choice.
|