cocoa: automatically save/restore main and search windows geom