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.
Comments
Post a Comment