Storing custom structs in Dictionary
I remember watching a video on iTunes U, I cant find it again but someone mentioned that you can't store any kind of object in an NSArray or NSDictionary.
I ran into some trouble trying to save a struct into a dictionary, to make things more complex, the struct had a NSDictionary as one of it's properties.
The error message I get is: incompatible type for argument 1 of 'setObject:forKey:'
Am I correct when I say you can't store a struct in a NSDictionary ?
What workaround would you suggest if that's the case ?
|