PDA

View Full Version : NSTableView: Clearing Selection




AsmCoder8088
Nov 9, 2008, 02:30 PM
Hi,

I have an NSTableView object that displays a list of items. When the user clicks outside the this table, I would like to have the highlight disappear.

I have tried using [myTable deselectAll:nil] but the highlight still remains, even though [myTable numberOfSelectedRows] returns zero.

Anyone know how to clear the highlight when no rows are selected??? It seems to do this when the user clicks within a blank region of the table, but not when the user clicks outside the table.

Any help would be greatly appreciated. thanks!



kainjow
Nov 11, 2008, 12:01 PM
Are you referring to the blue focus ring around the table? If so, you can change it via the setFocusRingType: method.