Welcome, Guest
Username Password: Remember me

New Cell Type
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: New Cell Type

New Cell Type 1 year, 4 months ago #1

Evening

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.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: New Cell Type 1 year, 4 months ago #2

Thanks a lot for the suggestion Iain, we'll definitely add this to our feature requests.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: New Cell Type 1 year, 4 months ago #3

Hi Tarek

Could you also add Check Marks as well.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: New Cell Type 1 year, 2 months ago #4

I also vote for a rating cell.

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.

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com

Re: New Cell Type 1 year, 2 months ago #5

Hi Brendan,

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.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: New Cell Type 1 year, 2 months ago #6

Hi Tarek,

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.

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com
  • Page:
  • 1
  • 2
Time to create page: 1.56 seconds