mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +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
eabce8b7c3
commit
f16dddd595
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>
|
2014-01-05 Niels Grewe <niels.grewe@halbordnung.de>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
||||||
* Source/GSDisplayServer.m:
|
* Source/GSDisplayServer.m:
|
||||||
Remove redundant method again.
|
Remove redundant method again.
|
||||||
|
|
||||||
2014-01-01 Niels Grewe <niels.grewe@halbordnung.de>
|
2014-01-01 Niels Grewe <niels.grewe@halbordnung.de>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
||||||
* Source/GSDisplayServer.m:
|
* Source/GSDisplayServer.m:
|
||||||
Add a method to get the window identifier used by the
|
Add a method to get the window identifier used by the
|
||||||
|
|
|
@ -1108,7 +1108,8 @@ selectCellWithString: (NSString*)title
|
||||||
*/
|
*/
|
||||||
- (NSInteger) runModal
|
- (NSInteger) runModal
|
||||||
{
|
{
|
||||||
return [self runModalForDirectory: [self directory] file: [self filename]];
|
return [self runModalForDirectory: [self directory]
|
||||||
|
file: [[self filename] lastPathComponent]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) beginSheetModalForWindow:(NSWindow *)window
|
- (void) beginSheetModalForWindow:(NSWindow *)window
|
||||||
|
@ -1201,7 +1202,7 @@ selectCellWithString: (NSString*)title
|
||||||
|
|
||||||
if (_allowedFileTypes == nil ||
|
if (_allowedFileTypes == nil ||
|
||||||
[_allowedFileTypes indexOfObject: @""] != NSNotFound)
|
[_allowedFileTypes indexOfObject: @""] != NSNotFound)
|
||||||
return _fullFileName;
|
return AUTORELEASE([_fullFileName copy]);
|
||||||
|
|
||||||
/* add file type extension if the file name does not have an extension or
|
/* 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
|
the file name's extension is not one of the allowed extensions and the
|
||||||
|
@ -1216,7 +1217,7 @@ selectCellWithString: (NSString*)title
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return _fullFileName;
|
return AUTORELEASE([_fullFileName copy]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue