Hi,
My TableView contains some columns. I need to access all the column values
of all selected rows. So I coded like:
 
NSString    *content;
for(i=0;i<[tableView numberOfRows];i++)
        {
            if([tableView isRowSelected:i])
            {
               content = [[[[[tableView
tableColumnWithIdentifier:@"MediaType"] dataCellForRow:i]stringValue]
stringByAppendingString:@","]
stringByAppendingString:[[[tableView tableColumnWithIdentifier:@"Category"]
dataCellForRow:i]stringValue]] ;

NSLog(@"%@",content);
            }
        }

But the log file shows last selected row values only. Where I got wrong?
How can I access all selected row values?

Thanks in advance.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to