Re: Setting a discontinuous selection in NSMatrix
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