In my project, I am getting passed a data object (XYZCustomClass) from a custom SDK. I will never need to modify this object, only use it and present its data in a UI. This custom data object has 5 normal string properties, and an NSDictionary type property called "addditionalProperties". The dictionary contains a set of key value pairs.
What I want in my client part, is to have real properties on my custom data object that would match those keys. Basically I want to have a nice interface with everything being a real property. I don't want to have some stuff hidden under keys, while other accessible normally.
I want to create a category on this data object that would declare 1) public readonly properties for each key 2) implement the getters that would retrieve the object for a particular key that is relevant for a particular property.
Working on 4.6.3 Xcode. Base SDK is 5.0. Is my approach ok? Will it work?
Remember, they are readonly, so please no associated object suggestions.