mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 16:41:55 +00:00
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:
parent
724e228f1a
commit
e70f659a25
2 changed files with 13 additions and 7 deletions
|
@ -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>
|
||||
|
||||
* Source/NSSearchFieldCell.m (-trackMouse:inRect:ofView:untilMouseUp:):
|
||||
|
|
|
@ -378,6 +378,11 @@
|
|||
[_window setDocumentEdited: [_document isDocumentEdited]];
|
||||
}
|
||||
|
||||
/* Make sure window sizes itself right */
|
||||
if ([_window_frame_autosave_name length] > 0)
|
||||
{
|
||||
[_window setFrameAutosaveName: _window_frame_autosave_name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -446,13 +451,6 @@
|
|||
|
||||
[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])
|
||||
{
|
||||
static NSPoint nextWindowLocation = { 0.0, 0.0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue