RE: NSMatrix selections
RE: NSMatrix selections
- Subject: RE: NSMatrix selections
- From: Jens Baumeister <email@hidden>
- Date: Sat, 9 Jun 2001 02:50:49 +0200
>
-----Original Message-----
>
From: Tom Waters [mailto:email@hidden]
>
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?
My guess is that state is used if you're not using NSMatrix as a matrix of
radio buttons but as a matrix of independent buttons: Several buttons could
be "on" or "off" or maybe even in mixed state without being the current
selection.
The selection should be what you get when you query the matrix for its
selected cell(s) - I can't think of a good UI that would seperate
highlighting from selecting (except maybe if it got rif of highlighting
completetly and replaced it by another equally consistent mechanism - though
that would still be tough on the HI guidelines), but apparently you can do
so if you wish.
_____________________________________
Jens Baumeister
Bullex GmbH, Cologne, Germany
She sells c-shells by the sea shore.