New Cell Type
Posted 01 January 2011 - 07:26 PM
Is it possible to have a new cell type that is stars - so that you can pick between 1 and 5 stars - similar to the rating system that you see on a lot of programs.
Posted 02 January 2011 - 05:33 AM
Posted 05 March 2011 - 07:39 PM
In fact, I already have a rating cell type, but I'm trying to figure out how to use it in context with Sensible Table View.
Any ideas? Do I need to tell my Rating Cell to subclass SCControlCell? I guess I'll just take a look at SCSliderCell to see how you implemented that since it'll be similar with a rating type cell. My rating cell can be configured to support between 1 and 10 stars.
Posted 07 March 2011 - 06:19 PM
You're absolutely right, the closest thing to a rating cell is SCSliderCell. You should then update the cell's boundValue whenever the user interacts with the stars, then call [self cellValueChanged].
We couldn't fit our own SCRatingCell into STV 2.0's over packed schedule, so we should probably have that ready for 2.1.
Posted 07 March 2011 - 06:24 PM
I did get it to work using SCSliderCell as an example. It works fairly well actually and I didn't have to change much code. Just implement a few methods from SCSliderCell in my own subclass of SCControlCell.
As an aside, will the GM release support a non-readonly boundObject? Sometimes I'd like to replace the value of the boundObject with a different object without having to rebuild the table.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users