• 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 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


References: 
 >Re: Setting a discontinuous selection in NSMatrix (From: Sherm Pendley <email@hidden>)

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