mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
allow looking inside bundles and default disk location to inside bundle
This commit is contained in:
parent
61770c58eb
commit
7004db923a
@ -188,7 +188,8 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
||||
NSOpenPanel *open = [NSOpenPanel openPanel];
|
||||
[open setCanChooseDirectories:NO];
|
||||
[open setAllowsMultipleSelection:NO];
|
||||
[open beginSheetForDirectory: @""
|
||||
[open setTreatsFilePackagesAsDirectories:YES];
|
||||
[open beginSheetForDirectory: [[NSFileManager defaultManager] currentDirectoryPath]
|
||||
file: @"Unknown"
|
||||
modalForWindow: [self window]
|
||||
modalDelegate: self
|
||||
@ -217,7 +218,8 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
||||
{
|
||||
NSSavePanel *save = [NSSavePanel savePanel];
|
||||
[save setAccessoryView: diskSaveSize];
|
||||
[save beginSheetForDirectory: @""
|
||||
[save setTreatsFilePackagesAsDirectories:YES];
|
||||
[save beginSheetForDirectory: [[NSFileManager defaultManager] currentDirectoryPath]
|
||||
file: @"New.dsk"
|
||||
modalForWindow: [self window]
|
||||
modalDelegate: self
|
||||
@ -252,6 +254,7 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
||||
NSOpenPanel *open = [NSOpenPanel openPanel];
|
||||
[open setCanChooseDirectories:NO];
|
||||
[open setAllowsMultipleSelection:NO];
|
||||
[open setTreatsFilePackagesAsDirectories:YES];
|
||||
[open beginSheetForDirectory: @""
|
||||
file: [romFile stringValue]
|
||||
modalForWindow: [self window]
|
||||
|
Loading…
Reference in New Issue
Block a user