• 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: NSWindow not restoring location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow not restoring location


  • Subject: Re: NSWindow not restoring location
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 14 Jun 2002 08:34:01 -0700

On Thursday, June 13, 2002, at 12:50 PM, Ondra Cada wrote:

On Thursday, June 13, 2002, at 08:24 , Edwin Zacharias wrote:

- (void)windowDidMove: (NSNotification *)aNotification
{
[ [ self window ] saveFrameUsingName: @"Inspector" ];
}

This looks superfluous. Is it not in your setup?!?

I think it is... the following method tells the window what its auto save name is. The key word is auto, every time the window is moved or resized its default will be updated.

- (void)windowDidLoad
{
[ [ self window ] setFrameAutosaveName: @"Inspector" ];
}

Or if you don't set the auto save name you need to save things yourself when and where you want to.

-Shawn
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSWindow not restoring location
      • From: Edwin Zacharias <email@hidden>
References: 
 >Re: NSWindow not restoring location (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Object from TableView cell
  • Next by Date: RE: Object from TableView cell
  • Previous by thread: Re: NSWindow not restoring location
  • Next by thread: Re: NSWindow not restoring location
  • Index(es):
    • Date
    • Thread