Sorry, it was late...
I have objects that have a NSString property that contains keys like @"1", @"2", @"3", etc. I am not 100% certain these are always numeric and I don't want to make that assumption. However, I also have an array of objects that have these same keys, as well as a display string that I want to use in the UI. So I thought it would be nice to have a way to give STV a map with mappings from those keys to the strings I want to use in the UI, like @"Bug", @"New Feature", @"Enhancement", etc. Something like:
[SCSelectionAttributes attributesWithDictionary:
[NSDictionary dictionaryWithObjectsAndKeys: @"Bug", @"1", @"New Feature", @"2", @"Enhancement", @"3", nil]
...]
Or perhaps to keep things ordered as well:
SCSelectionAttributes attributesWithKeys: [NSArray arrayWithObjects: @"1", @"2", @"3", nil]
values: [NSArray arrayWithObjects: @"Bug", @"New Feature", @"Enhancement", nil]
Hope it makes more sense now...In short a way to have a non-numeric index based mapping from property values to display values
Thanks,
Frank