Re: Window frame autosave
Re: Window frame autosave
- Subject: Re: Window frame autosave
- From: David Aames <email@hidden>
- Date: Fri, 13 Oct 2006 21:35:13 +0100
Hello again,
I found a solution - the autosave function would only work in this if
it's the last thing I call in windowDidLoad: - no idea why but that
is it. I'm not sure if I've hit some kind bug or I'm abusing in some
way Cocoa.
Regards,
David
On 13 Oct 2006, at 21:18, Peter Schart wrote:
On Oct 13, 2006, at 2:59 PM, David Aames wrote:
Hello all,
I've just hit something really strange - my preferences window
never saves it's position. I've set the controller not to cascade
windows and tried all three methods of saving the frame:
NSWindow's autosaveFrame..., manually restoring the frame in
awakeFromNib and saving in windowWillClose and using the
NSWindowController's frame autosaving - nothing works. I'm really
puzzled why it's doing that. Any hints are greatly appreciated.
Just a thought: are you using runModalForWindow: to display your
preferences window? If so (from the docs):
"- (int)runModalForWindow:(NSWindow *)aWindow
...
The window aWindow is placed on the screen using the NSWindow
method center..."
pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden