• 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: Window frame autosave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window frame autosave


  • Subject: Re: Window frame autosave
  • From: David Aames <email@hidden>
  • Date: Fri, 13 Oct 2006 21:24:28 +0100



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):

No, I'm not. I'm instantiating a window controller and calling [controller showWindow:self];. The window is set not to be visible at launch (I don't think this matter since I have another window which is not visible at launch and saves its frame just ok). I'm really puzzled why this is happening.


Thanks,
David


"- (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
  • Follow-Ups:
    • Re: Window frame autosave
      • From: "I. Savant" <email@hidden>
References: 
 >Window frame autosave (From: David Aames <email@hidden>)
 >Re: Window frame autosave (From: Peter Schart <email@hidden>)

  • Prev by Date: Re: Stop NSSplitView from resizing with Window?
  • Next by Date: Re: Window frame autosave
  • Previous by thread: Re: Window frame autosave
  • Next by thread: Re: Window frame autosave
  • Index(es):
    • Date
    • Thread