objective c - How can I easily save the Window size and position state using Obj-C? -


what best way remember windows position between application loads using obj-c? using interface builder interface, possible bindings.

what recommended method? thank you.

put name unique window (e.g. "mainwindow" or "prefswindow") in autosave field under attributes in interface builder. have location saved in user defaults automatically.

to set autosave name programmatically, use -setframeautosavename:. may want if have document-based app or other situation doesn't make sense set autosave name in ib.

link documentation.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -