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 21:04:23 -0700
Sherm Pendley <mailto:email@hidden> wrote (Tuesday,
January 18, 2011 8:01 PM -0500):
Try -setSelectionFrom:to:anchor:highlight:
Sherm,
You're right: -setSelectionFrom:to:anchor:hightlight: is the
only way to do it.
I tried the suggestion documented in -selectedCells and it
doesn't work. It sets the selection OK, but it doesn't
consistently highlight the cells and it messes up the selection
behavior. For example, if you select three cells and then click
on a fourth, it deselects the first three. But if you select
them using the technique documented in -selectedCells, and then
click on the fourth cell, only the first of the three selected
cells gets deselected.
I'll continue to experiment, but so far it seems to be working
the way one would expect.
Thanks,
--
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