Basically i want a data-structure that i can grow and shrink as and when i get more information on users. I want a flat associative list of usernames with their associated data E.G:
` usersDictionary = {
user_id : {
id : "0123456789",
full_name : "Spongebob Jones",
more_data: {
likes: "snails"
}
},
next_user_id : {}
}`
Relatively new to Obj-C... I've spiked a datasource, I'm using @interface NSMutableDictionary and building up the user data appending other NSMuteablesDictionaries. All seemed well, however when trying to get the data out i'm getting:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSDictionary objectForKey:]: method only defined for abstract class. Define -[UsersCollection objectForKey:]!
I read that it's not recommended to implement NSMuteableDictionary directly, as it's a cluster class(?).
I'm looking for some advice on whether or not i'm going about this the correct way, if not please point!