NSMatrix selections
NSMatrix selections
- Subject: NSMatrix selections
- From: Tom Waters <email@hidden>
- Date: Fri, 8 Jun 2001 12:52:39 -0700
I've been digging deeper into NSBrowser and have my own NSMatrix
subclass in use to support drag and drop, etc.
I note that NSMatrix also doesn't have a method for making discontinuous
selections, even though the user can make them through the interface.
NSMatrix adds setSelectionFrom:to:anchor:highlight: which allows for
multiple selection, but I'm assuming that selectCellAtRow:column selects
only a single cell, as that is the behavior that NSBrowser shows.
I must be missing something obvious.
While I'm displaying my ignorance, could someone explain to me the
philosophical difference between a cell being selected, highlighted and
having it's state set?
highlightCell:atRow:column:
setState:atRow:column:
selectCellAtRow:column:
In my cells, I draw the selection highlight if isHighlighted is true,
but what is state used for? and where is the notion of selection stored
if one can set the highlighted state separate from the selected state?