Save NSWindow Size on Resize & Close For User
Posted
by
incarna
on Stack Overflow
See other posts from Stack Overflow
or by incarna
Published on 2012-04-11T23:13:51Z
Indexed on
2012/04/11
23:28 UTC
Read the original article
Hit count: 226
I've noticed that all applications on OS X seem to save the size you set it at. The next time you open it it's typically in the same position and size.
I'm making an app and I've noticed that after resizing, if I launch the application again it's just the size of what I've set in Xcode 4's IB and not the size that I resized it to on launch.
Do I have to manually save the window size each time its changed? Or is there an easier way to do this through IB? (My window does have a minimum size set if that changes anything.)
© Stack Overflow or respective owner