Cocoa preferences
One of the nicest things about Cocoa is the user preferences architecture. It provides a nice way to store explicit user preferences, as well as implicit things like window placement. And what I discovered today is that Cocoa has very nice hooks to make that easy. For example, to make a window remember its last position, you just have to add one line to the awakeFromNib
method:
[self setWindowFrameAutosaveName: @"LinkWindow"];
It’s so simple that there’s no reason not to do it. It took just a couple of minutes to add that to Blapp.