UA-17470720-3

Jump to content


Photo
- - - - -

New Cell Type


  • Please log in to reply
6 replies to this topic

#1 Iain Munro

Iain Munro

    Advanced Member

  • STV 3.0 Pro
  • PipPipPipPipPip
  • 135 posts
Reputation: 2
Good

Posted 01 January 2011 - 07:26 PM

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

#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 02 January 2011 - 05:33 AM

Thanks a lot for the suggestion Iain, we'll definitely add this to our feature requests.

#3 Iain Munro

Iain Munro

    Advanced Member

  • STV 3.0 Pro
  • PipPipPipPipPip
  • 135 posts
Reputation: 2
Good

Posted 02 January 2011 - 05:39 PM

Hi Tarek

Could you also add Check Marks as well.

Iain

#4 Brendan Duddridge

Brendan Duddridge

    Advanced Member

  • STV 5.0 Pro
  • PipPipPipPipPip
  • 170 posts
Reputation: 7
Good

Posted 05 March 2011 - 07:39 PM

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

#5 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 07 March 2011 - 06:19 PM

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.

#6 Brendan Duddridge

Brendan Duddridge

    Advanced Member

  • STV 5.0 Pro
  • PipPipPipPipPip
  • 170 posts
Reputation: 7
Good

Posted 07 March 2011 - 06:24 PM

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

#7 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 07 March 2011 - 06:34 PM

It will, thanks again for the suggestion :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users