mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +00:00
* 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:
parent
c7839ee576
commit
8bf4c36cc2
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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 %@."),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue