NSWindow not restoring location
NSWindow not restoring location
- Subject: NSWindow not restoring location
- From: Greg Hulands <email@hidden>
- Date: Thu, 13 Jun 2002 17:49:28 +1000
Hi,
I have an inspector that I want to save the location of so that when the
application relaunches it is in the same position. My controller class for
the inspector is a subclass of NSWindowController.
- (id)init {
self = [self initWithWindowNibName:@"Inspector"];
if (self) {
[self setWindowFrameAutosaveName:@"Inspector"];
needsUpdate = YES;
}
return self;
}
The position is saved in the plist file in the preferences folder but when
it comes time to restore the position of the window, it just does not do it.
Is there something I am not setting or calling to get this to work properly?
Any help is appreciated.
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.