• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Use Window Frame Autosave, or fall back to Cascade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Use Window Frame Autosave, or fall back to Cascade
      • From: Jerry Krinock <email@hidden>
References: 
 >Use Window Frame Autosave, or fall back to Cascade (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Use Window Frame Autosave, or fall back to Cascade
  • Next by Date: Re: NSImageView blurring bug
  • Previous by thread: Use Window Frame Autosave, or fall back to Cascade
  • Next by thread: Re: Use Window Frame Autosave, or fall back to Cascade
  • Index(es):
    • Date
    • Thread