Save NSWindow Size on Resize & Close For User
Apple makes it easy. In interface builder, for your window, just type in a unique name in the Autosave
field and it will save it under that name in the global user defaults. E.G.
When you select your main window in the Interface Builder, there should be a property called Autosave
in the attributes inspector. Put any name in there does the trick for me.