Saving Window positions in Cocoa
Saving Window positions in Cocoa
- Subject: Saving Window positions in Cocoa
- From: Michael Emfinger <email@hidden>
- Date: Thu, 24 Jan 2002 18:14:42 -0800
Hello,
I'm attempting to save the window position on a fixed size window with no
results.
In the window controller Init function I'm calling:
[[self window] setFrameUsingName:@"WindowPosition" force: YES];
..while in the windowWillClose function I'm calling:
[[self window] saveFrameUsingName:@"WindowPosition"];
Nothing is being saved though.
I'm aware that autosave name doesn't work unless you re-size a window, but
this one isn't re-sizable anyway and I'm not setting an autosave name in the
nib.
The code listed here *does* work in one of my apps, but in this particular
case it's not saving anything. Any help on what I might be missing would be
greatly appreciated.
Thanks!
Michael Emfinger
Software Engineer
Symantec Corporation
Peter Norton Group