Move code to set the window frame autosave name of a window

controller's window to match Cocoa behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2011-01-24 22:05:36 +00:00
parent 724e228f1a
commit e70f659a25
2 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,11 @@
2011-01-24 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWindowController.m (-windowDidLoad): Move code to set
the autosave name of the window's frame from here ...
* Source/NSWindowController.m (-setWindow:): ... to here to match
Cocoa behavior (cf. Apple's AppKit release notes for OS X 10.5).
2011-01-24 Doug Simons <doug.simons@testplant.com> 2011-01-24 Doug Simons <doug.simons@testplant.com>
* Source/NSSearchFieldCell.m (-trackMouse:inRect:ofView:untilMouseUp:): * Source/NSSearchFieldCell.m (-trackMouse:inRect:ofView:untilMouseUp:):

View file

@ -378,6 +378,11 @@
[_window setDocumentEdited: [_document isDocumentEdited]]; [_window setDocumentEdited: [_document isDocumentEdited]];
} }
/* Make sure window sizes itself right */
if ([_window_frame_autosave_name length] > 0)
{
[_window setFrameAutosaveName: _window_frame_autosave_name];
}
} }
} }
@ -445,13 +450,6 @@
_wcFlags.nib_is_loaded = YES; _wcFlags.nib_is_loaded = YES;
[self synchronizeWindowTitleWithDocumentName]; [self synchronizeWindowTitleWithDocumentName];
/* Make sure window sizes itself right */
if ([_window_frame_autosave_name length] > 0)
{
[_window setFrameUsingName: _window_frame_autosave_name];
[_window setFrameAutosaveName: _window_frame_autosave_name];
}
if ([self shouldCascadeWindows]) if ([self shouldCascadeWindows])
{ {