• 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
Re: Setting a discontinuous selection in NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a discontinuous selection in NSMatrix


  • Subject: Re: Setting a discontinuous selection in NSMatrix
  • From: James Bucanek <email@hidden>
  • Date: Tue, 18 Jan 2011 20:15:28 -0700

James Bucanek <mailto:email@hidden> wrote (Tuesday, January 18, 2011 7:45 PM -0700):

However, I can find no way of programmatically setting an arbitrary selection.
Everything I've tried (-selectCell:, -selectCellAtRow:column:, even -[NSCell
setState:]), either doesn't update the selection or only selects the last cell.

OK, I think I found it. It's documented in -selectedCells (for some weird reason). Basically, to create a discontinuous selection you have to select the first cell using -selectCell:, selectCellAtRow:column:, or something similar and then select additional cells using -highlightCell:atRow:column:.


At least now the answer's in the archives. :)

You may now return to your regularly scheduled list discussion.
--
James Bucanek

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Setting a discontinuous selection in NSMatrix (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Setting a discontinuous selection in NSMatrix
  • Next by Date: Object C Interacts with Solr
  • Previous by thread: Re: Setting a discontinuous selection in NSMatrix
  • Next by thread: Object C Interacts with Solr
  • Index(es):
    • Date
    • Thread