Cocoa: Deleting multiple NSTableView items
Posted by tom June 20th, 2007
NSIndexSet *selectedSet = [tableView selectedRowIndexes];
unsigned int row = [selectedSet lastIndex];
while (row != NSNotFound)
{
[yourNsMutableArray removeObjectAtIndex:row];
row = [selectedSet indexLessThanIndex:row];
}

Sorry, comments are closed for this article.