Re: NSWindow not restoring location
Re: NSWindow not restoring location
- Subject: Re: NSWindow not restoring location
- From: j o a r <email@hidden>
- Date: Thu, 13 Jun 2002 10:04:12 +0200
How about calling:
- (BOOL)setFrameUsingName:(NSString *)name
on the window in:
- (void)windowDidLoad
of your window controller?
j o a r
On Thursday, June 13, 2002, at 09:49 AM, Greg Hulands wrote:
>
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.
_______________________________________________
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.