mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
NSSavePanel (-ok:): Display filename with extension when replacing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14983 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6a2f9200b9
commit
14c4427f75
5 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-11-12 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/gui/AppKit.h: Add NSDocumentController.
|
||||
|
||||
* Source/NSSavePanel.m ([NSSavePanel -ok:]): Display filename
|
||||
(with extension) if replacing.
|
||||
|
||||
2002-11-12 20:40 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTableView (-setDataSource:): Allow nil data source.
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
#include <AppKit/NSDataLink.h>
|
||||
#include <AppKit/NSDataLinkManager.h>
|
||||
#include <AppKit/NSDataLinkPanel.h>
|
||||
#include <AppKit/NSDocumentController.h>
|
||||
#include <AppKit/NSDragging.h>
|
||||
#include <AppKit/NSEPSImageRep.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
|
|
|
@ -578,7 +578,7 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
|
|||
return NO;
|
||||
}
|
||||
|
||||
/** Returns the document whose window is the keyWindow */
|
||||
/** Returns the document whose window is the main window */
|
||||
- (id) currentDocument
|
||||
{
|
||||
return [self documentForWindow:
|
||||
|
|
|
@ -949,11 +949,10 @@ selectCellWithString: (NSString*)title
|
|||
{
|
||||
int result;
|
||||
|
||||
//FIXME -- localize
|
||||
result = NSRunAlertPanel(@"Save",
|
||||
@"The file '%@' in '%@' exists. Replace it?",
|
||||
@"Replace", @"Cancel", nil,
|
||||
[[_form cellAtIndex: 0] stringValue],
|
||||
result = NSRunAlertPanel(_(@"Save"),
|
||||
_(@"The file '%@' in '%@' exists. Replace it?"),
|
||||
_(@"Replace"), _(@"Cancel"), nil,
|
||||
[[self filename] lastPathComponent],
|
||||
_directory);
|
||||
|
||||
if (result != NSAlertDefaultReturn)
|
||||
|
|
|
@ -777,7 +777,7 @@ static NSColor *scrollBarColor = nil;
|
|||
? NSScrollerIncrementLine : NSScrollerDecrementLine)];
|
||||
id theCell = nil;
|
||||
|
||||
NSDebugLog (@"position of %s cell is (%f, %f)",
|
||||
NSDebugLLog (@"NSScroller", @"position of %s cell is (%f, %f)",
|
||||
(whichButton == NSScrollerIncrementArrow ? "increment" : "decrement"),
|
||||
rect.origin.x, rect.origin.y);
|
||||
|
||||
|
|
Loading…
Reference in a new issue