* Source/NSDocument.m (-initWithContentsOfFile:ofType:): Set the

file name and type before attempting to read the document.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23546 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-09-17 15:15:42 +00:00
parent c7839ee576
commit 8bf4c36cc2
2 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2006-09-17 Matt Rice <ratmice@yahoo.com>
* Source/NSDocument.m (-initWithContentsOfFile:ofType:): Set the
file name and type before attempting to read the document.
2006-09-17 Fred Kiefer <FredKiefer@gmx.de> 2006-09-17 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-_isCellEditableColumn:row:): Correced * Source/NSTableView.m (-_isCellEditableColumn:row:): Correced

View file

@ -94,12 +94,10 @@
self = [self init]; self = [self init];
if (self != nil) if (self != nil)
{ {
if ([self readFromFile: fileName ofType: fileType]) [self setFileType: fileType];
{ [self setFileName: fileName];
[self setFileType: fileType];
[self setFileName: fileName]; if (![self readFromFile: fileName ofType: fileType])
}
else
{ {
NSRunAlertPanel (_(@"Load failed"), NSRunAlertPanel (_(@"Load failed"),
_(@"Could not load file %@."), _(@"Could not load file %@."),