I'm using a NSPersistantDocument
backed by Core Data in my application.
Each document has a number of settings that are only relevant to that document. For example the document needs to hold the unique ID of an Address Book Group, to update it at a later date.
The way I'm thinking of approaching this is to have another model, DocumentSetting
, which has two attributes; a key and a value, which hold NSString
's.
Ideally I would like something similar to NSUserDefaults
but stored within the document.
Has anyone done this before? Are there any better way to approach this?