I am just learning basic programming in Objective-C and Cocoa. I am trying to get some data from an NSTableView. Based on what I read in one tutorial, I wrote the following:
NSArray * items = [[itemsTableView selectedRowEnumerator] allObjects];
But then I found out that selectedRowEnumerator deprecated already in 10.3 Panther and that I should use selectedRowIndexes .
The problem is that I did not find how to actually use the returned NSIndexSet to achieve the same result as with the code written above.
So, if anyone could give me advice, I would be very grateful. Thanks.
source share