Re: How to save a window's position and size

2020-05-23 Thread Gabriel Zachmann via Cocoa-dev
Looks good! Thanks! > On 23. May 2020, at 21:59, Carl Hoefs wrote: > > No guarantees, but you could try moving your code into an AppDelegate method > that gets invoked earlier: > > - (void)applicationWillFinishLaunching:(NSNotification *)notification; > > -Carl > smime.p7s Description: S

Re: How to save a window's position and size

2020-05-23 Thread Sandor Szatmari via Cocoa-dev
Gabriel, > On May 23, 2020, at 15:54, Gabriel Zachmann via Cocoa-dev > wrote: > > Actually, after observing the new behavior for a while, > I have to say it's "almost" perfect. > > The window still opens at some funny position with a smallish size (where is > that stored?), > but with no co

Re: How to save a window's position and size

2020-05-23 Thread Carl Hoefs via Cocoa-dev
No guarantees, but you could try moving your code into an AppDelegate method that gets invoked earlier: - (void)applicationWillFinishLaunching:(NSNotification *)notification; -Carl > On May 23, 2020, at 12:53 PM, Gabriel Zachmann wrote: > > Actually, after observing the new behavior for a wh

Re: How to save a window's position and size

2020-05-23 Thread Gabriel Zachmann via Cocoa-dev
Actually, after observing the new behavior for a while, I have to say it's "almost" perfect. The window still opens at some funny position with a smallish size (where is that stored?), but with no content, just grey inside, for a split second, then it snaps to the autosaved position/size. It's

Re: How to save a window's position and size

2020-05-23 Thread Gabriel Zachmann via Cocoa-dev
Seems to work like a charm! thanks a lot. (For the record: [self.window setDelegate: self]; has to be done before setFrameAutosaveName.) Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Co