setFrameAutosaveName: gone insane
setFrameAutosaveName: gone insane
- Subject: setFrameAutosaveName: gone insane
- From: Edwin Zacharias <email@hidden>
- Date: Tue, 14 May 2002 21:13:58 -0400
I'm am having an amazing amount of trouble getting NSWindow's
setFrameAutosaveName: to work. A utility window of mine keeps jumping
back to the top-left of the screen and not remembering its position.
I will open the application. Move the window. Quit the application.
And open it again. It should remember the position but it either
doesn't or it moves the window to the top-left of the screen.
Here's my code an NSWindowController subclass:
- (void)windowDidLoad
{
[[self window] setFrameUsingName:@"OLOptionPanel" force:YES];
[[self window] setFrameAutosaveName:@"OLOptionPanel"];
}
The window is a non-resizable utility panel. I think that might be part
of the problem.
Any help would be appreciated. Or if you know of sample code somewhere
that deals with this.
- Edwin
_______________________________________________
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.