• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMatrix selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Follow-Ups:
    • Re: NSMatrix selections
      • From: Tom Waters <email@hidden>
    • Re: NSMatrix selections
      • From: David P Henderson <email@hidden>
  • Prev by Date: Re: Hiliting an NSToolbarItem (the "Current" selection)?
  • Next by Date: NSBrowser bug
  • Previous by thread: Re: NSBrowser selections
  • Next by thread: Re: NSMatrix selections
  • Index(es):
    • Date
    • Thread