Re: NSWindow not restoring location
Re: NSWindow not restoring location
- Subject: Re: NSWindow not restoring location
- From: Pierre-Olivier Latour <email@hidden>
- Date: Thu, 11 Jul 2002 11:55:12 +0200
>
So, the solution is to call [NSWindowController setShouldCascadeWindows:NO]
>
in your NSWindowController subclass to turn this behavior off for the
>
controller of any singleton window you are trying to position. After that,
>
it should explicitly restore the position no matter where it was previously
>
located. Just make sure to set your autosave name properly and call [window
>
setFrameUsingName:] in [NSWindowController windowDidLoad].
That seems to be an interesting solution, but how would do you do that if
you're building a non-document-based Cocoa application (i.e. Without any
NSWindowController)? I have this window positioning problem that appears
sometimes in my Cocoa apps.
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Manager and Lead Programmer
French Touch software
http://www.french-touch.net
_______________________________________________
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.