What is the recommended way to preserve UI properties as part of a
document? For example: window sizes, window position, table column
sizes, etc.
There're two perfectly good approaches I can think of:
1 - Store them as a dictionary in your store's meta data (see
NSPersistentStoreCoordinator's -metadataForPersistentStore: and
-setMetadata:forPersistentStore: methods).
or
2 - Create an entity called "Settings" or some-such, always make sure
your document has a single instance of this entity (try to retrieve
one on opening, if none, create one), and create attributes like
"windowSize" (which you could store as an NSRect()->NSValue->NSData or
as a string (NSStringFromRect()), etc.).