Re: tableview multiple selected loop

2010-07-27 Thread Amy Gibbs
Thanks, realised I don't actually need to loop through, as I can just assign the whole set to the relationship: [[kit mutableSetValueForKey:@"kitItem"] addObjectsFromArray:kitItems]; Thanks, On 27 Jul 2010, at 2:05PM, Graham Cox wrote: On 27/07/2010, at 5:53 PM, Amy Gibbs wrote: If i've

Re: tableview multiple selected loop

2010-07-27 Thread Graham Cox
On 27/07/2010, at 5:53 PM, Amy Gibbs wrote: > If i've got multiple rows selected in a table view, and I want to do > something with each of them, do I need some kind of loop in my code, or will > cocoa automatically run the code for each selected row? I can't find any kind > of while, foreach

tableview multiple selected loop

2010-07-27 Thread Amy Gibbs
Hi, If i've got multiple rows selected in a table view, and I want to do something with each of them, do I need some kind of loop in my code, or will cocoa automatically run the code for each selected row? I can't find any kind of while, foreach type of loop example anywhere? Thanks (Bac