Re: Use Window Frame Autosave, or fall back to Cascade
Re: Use Window Frame Autosave, or fall back to Cascade
- Subject: Re: Use Window Frame Autosave, or fall back to Cascade
- From: Seth Willits <email@hidden>
- Date: Tue, 19 Jun 2007 19:57:48 -0700
On Jun 19, 2007, at 7:48 PM, Jerry Krinock wrote:
The desirable behavior for my document windows would be:
If autosave frame is available, use it.
Otherwise, cascade from some already-opened document window.
It's pretty simple to do this. I do it by:
- (void)windowDidLoad;
{
if (hasASavedWindowFrame) {
[window setFrame:NSRectFromString(savedWindowFrameString)
display:NO];
[self setShouldCascadeWindows:NO];
}
}
Try that if you haven't, and see if it works the way you want.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden