mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
* Source/NSSavePanel.m (-runModal): Use only last component from
filename. * Source/NSSavePanel.m (-filename): Return autoreleased copy of instance variable. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37570 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0725950577
commit
e15355d1e0
2 changed files with 12 additions and 3 deletions
|
@ -1,9 +1,17 @@
|
|||
2014-01-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSSavePanel.m (-runModal): Use only last component from filename.
|
||||
* Source/NSSavePanel.m (-filename): Return autoreleased copy of
|
||||
instance variable.
|
||||
|
||||
2014-01-05 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
||||
* Source/GSDisplayServer.m:
|
||||
Remove redundant method again.
|
||||
|
||||
2014-01-01 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
||||
* Source/GSDisplayServer.m:
|
||||
Add a method to get the window identifier used by the
|
||||
|
|
|
@ -1108,7 +1108,8 @@ selectCellWithString: (NSString*)title
|
|||
*/
|
||||
- (NSInteger) runModal
|
||||
{
|
||||
return [self runModalForDirectory: [self directory] file: [self filename]];
|
||||
return [self runModalForDirectory: [self directory]
|
||||
file: [[self filename] lastPathComponent]];
|
||||
}
|
||||
|
||||
- (void) beginSheetModalForWindow:(NSWindow *)window
|
||||
|
@ -1201,7 +1202,7 @@ selectCellWithString: (NSString*)title
|
|||
|
||||
if (_allowedFileTypes == nil ||
|
||||
[_allowedFileTypes indexOfObject: @""] != NSNotFound)
|
||||
return _fullFileName;
|
||||
return AUTORELEASE([_fullFileName copy]);
|
||||
|
||||
/* add file type extension if the file name does not have an extension or
|
||||
the file name's extension is not one of the allowed extensions and the
|
||||
|
@ -1216,7 +1217,7 @@ selectCellWithString: (NSString*)title
|
|||
}
|
||||
else
|
||||
{
|
||||
return _fullFileName;
|
||||
return AUTORELEASE([_fullFileName copy]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue