NSTableView: Clearing Selection

Discussion in 'Mac Programming' started by AsmCoder8088, Nov 9, 2008.

  1. AsmCoder8088 macrumors newbie

    Jul 18, 2008

    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!
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Are you referring to the blue focus ring around the table? If so, you can change it via the setFocusRingType: method.

Share This Page