Dusting off this old topic to show that I cared enough to search...

Here is a similar problem....
Imagine an iPhone app with a standard iPhone table list of anyway from 10 to 1,000+ entries.
Imagine having an 'On/Off' switch attached to each of those XXXX entries
How would I build my code so I could call a single selector and be able to identify the 'table row' the switch was on.
For example
CODE
Apple [Off/On]
Banana [Off/On]
Peach [Off/On]
Pear [Off/On]
Plumb [Off/On]
When I click on the Off/On toggle button for the peach it goes to a single action:@selector(hitTheBotton:) and in turn that procedure would need to unravel that it was called *not only* because an Off/On button was pressed but the specific table row. This must be doable otherwise what would be the point of including buttons in a table of items... Again... since the actual number of items could be anywhere from 10 to 1000 writing a unique procedure for each button simply wouldn't be possible or in any way an acceptable solution.
I'm still very new to all of this and with a bit of a forced break away from SDK work (last worked with rel. 2) I'm more confused than ever and the web is populated with TONS of example of things that... do work... was broke/changed in rel 6... was broke/changed in rel 5... was broke/changed in rel 4... was broke/changed in rel 3... etc etc etc...
In my google aided searches I saw some cryptic reference to using a 'tag' and or naming each button... I can't find any hardcore working examples of such things but if I were to be able to 'name' or 'tag' the button with the 'table row number' at the time the table is being built (and button was being attached) that would be okay...
Anyone have any currently working ideas?

---EDIT---
Well after going over all the available docs example code postings etc etc etc.... I've given up on using the fancy 'On/Off' switch that the SDK provides and instead have chosen to simply use the basic button type and utilize several fields (that for me are unused) for storing the table row number for each button.
Dave