Re: Arg! Document window restoration. Again.


Keary Suska
 

Did something change recently? frameautosave has historically been the way to save a window’s frame, regardless of when the window was opened. Maybe you should take a second look. If you have a simple controller-window setup, you could also look at windowFrameAutosaveName.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

On Aug 1, 2019, at 7:00 AM, Steve Mills via Groups.Io <sjmills=mac.com@groups.io> wrote:

On Jul 31, 2019, at 23:57:33, Jon Gotow <gotow@stclairsoft.com> wrote:

Can't you just set NSWindow.frameAutosaveName? Or does NSDocument get in the way of that?
From what I've experienced and read, that only helps for reopening docs on app launch, not on opening docs once launched. The OS only stores info for docs that were open when the app exits so it can restore the app to the same state (as long as you have "Close windows when quitting an app" turned off in System Prefs).

--
Steve Mills
Drummer, Mac geek



Join cocoa@apple-dev.groups.io to automatically receive all group messages.