Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AsmCoder8088

macrumors newbie
Original poster
Jul 18, 2008
3
0
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!
 
Are you referring to the blue focus ring around the table? If so, you can change it via the setFocusRingType: method.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.