mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
* Source/NSDocument.m: Correction for bug#24758, add name and
type information to the object before reading the file so that it is available during the readFile:ofType: method call. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27017 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
11505ad71d
commit
dc2030262a
2 changed files with 13 additions and 12 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-11-08 10:09-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSDocument.m: Correction for bug#24758, add name and
|
||||
type information to the object before reading the file so that
|
||||
it is available during the readFile:ofType: method call.
|
||||
|
||||
2008-11-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBitmapImageRep.m (-_convertToFormatBitsPerSample:...):
|
||||
|
@ -32,6 +38,7 @@
|
|||
* Source/NSPopUpButton.m (-keyDown): Trigger action only after
|
||||
pressing the Space key.
|
||||
|
||||
>>>>>>> .r27016
|
||||
2008-11-01 21:35-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSWindow.m: Reverted a previous change to miniaturize.
|
||||
|
|
|
@ -96,12 +96,9 @@
|
|||
self = [self init];
|
||||
if (self != nil)
|
||||
{
|
||||
if ([self readFromFile: fileName ofType: fileType])
|
||||
{
|
||||
[self setFileType: fileType];
|
||||
[self setFileName: fileName];
|
||||
}
|
||||
else
|
||||
[self setFileType: fileType];
|
||||
[self setFileName: fileName];
|
||||
if (![self readFromFile: fileName ofType: fileType])
|
||||
{
|
||||
NSRunAlertPanel (_(@"Load failed"),
|
||||
_(@"Could not load file %@."),
|
||||
|
@ -122,12 +119,9 @@
|
|||
self = [self init];
|
||||
if (self != nil)
|
||||
{
|
||||
if ([self readFromURL: url ofType: fileType])
|
||||
{
|
||||
[self setFileType: fileType];
|
||||
[self setFileName: [url path]];
|
||||
}
|
||||
else
|
||||
[self setFileType: fileType];
|
||||
[self setFileName: [url path]];
|
||||
if (![self readFromURL: url ofType: fileType])
|
||||
{
|
||||
NSRunAlertPanel(_(@"Load failed"),
|
||||
_(@"Could not load URL %@."),
|
||||
|
|
Loading…
Reference in a new issue