views:

36

answers:

2

I am a beginner to objective c.Please tell me that how perform multiplay selection in NSTableView.I am unable to retain previous selection, when i am clicking on another row.

A: 

You have to enable multiple selection on the table view by calling:

[tableView setAllowsMultipleSelection: YES]

You can then select multiple rows by pressing Command+Click on the rows you want.

Thomas
but i need to select those rows when checkbox is get checked.actually i need to do selection through coding.
Richa Vijayvargiya
+2  A: 

The method call you are looking for is

- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend 
Lothar