One area where I'd appreciate your advice on the best approach is in generating dynamic objects.
By way of background the little demo I'm working on is to allow a user to configure a questionnaire. In one view I've got an SCPropertyTypeSelection cell where the user selects what type of question they want - text, numeric, date etc.
Next I wanted to use an SCObjectCell to allow the user to advance to a view of parameters for the configured response type, where they can configure criteria such as sub-type, validation format, min value, max value etc.
Issue is the available parameters will be a variable number and different type for each response type. In your samples you're setting up the hierarchy and property definitions all at once in the initial view's viewDidLoad. I'd really like to implement willSelectRowAtIndexPath or didSelectRowAtIndexPath for this object cell and dynamically setup the detail object then - using key binding or perhaps dictionary editing to define the object for the detail view.
I see SCObjectCell has an objectClassDefinition property but setting the bound object only appears in the initialisers. What would you suggest the best approach is?
On a related note we store the various parameters all as strings in the back end database. Is it possible to have an NSString object with a cell type set to something normally associated with an NSNumber like numeric text or slider - or will I need to implement custom accessors to achieve this?
Cheers,
Steve.