So in the app I’m working on, I want to move from a hardcoded list of records to a model where I can add records to the list as needed. currently, the record looks like this:
so it SEEMS to me, based on poking around, that the way to store this is as an NSMutableArray of NSDictionaries? Since I’d want to be able to add and remove dictionaries, NSMutableArray seems to be the better option.
Looking at the docs for NSUserDefaults, this seems to make sense given arrayForKey:
The thing I’m not seeing is what’s the key for the array? How do I set that when I store it, so I have a key with which to retrieve it?
Oh, also, I don’t see a good way to set defaults based on either arrays or dicts