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

NSWindow not restoring location


  • Subject: NSWindow not restoring location
  • From: Greg Hulands <email@hidden>
  • Date: Thu, 13 Jun 2002 17:49:28 +1000

Hi,
I have an inspector that I want to save the location of so that when the
application relaunches it is in the same position. My controller class for
the inspector is a subclass of NSWindowController.

- (id)init {
self = [self initWithWindowNibName:@"Inspector"];
if (self) {
[self setWindowFrameAutosaveName:@"Inspector"];
needsUpdate = YES;
}
return self;
}

The position is saved in the plist file in the preferences folder but when
it comes time to restore the position of the window, it just does not do it.
Is there something I am not setting or calling to get this to work properly?

Any help is appreciated.

Greg
_______________________________________________
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>
    • Re: NSWindow not restoring location
      • From: Edwin Zacharias <email@hidden>
    • Re: NSWindow not restoring location
      • From: j o a r <email@hidden>
  • Prev by Date: Re: math.h undefined logf()
  • Next by Date: Re: NSWindow not restoring location
  • Previous by thread: NSFormatter troubles
  • Next by thread: Re: NSWindow not restoring location
  • Index(es):
    • Date
    • Thread