• 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: NSMatrix shift selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix shift selection


  • Subject: Re: NSMatrix shift selection
  • From: Stephan Burlot <email@hidden>
  • Date: Mon, 17 Jan 2005 11:27:11 +0100


Le 17 janv. 05, à 11:21, Jeremy Dronfield a écrit :

On 17 Jan 2005, at 9:39 am, Stephan Burlot wrote:

Hi,

I have an NSMatrix of NSCells, and it doesnt perform shift selection as expected*:

Lets say I have this nsmatrix:
A B C
D E F

If I click on B and shift click on F, I would expect the cells B, C, D, E, F to be selected, but only B, C, E, F are selected, as if I was doing a rectangular selection. Do I have to handle this myself using - (void)setSelectionFrom: to: anchor: highlight: or is there some magic to perform to make it work as expected?

I'm guessing that you have your matrix set up to allow selection by rect (this is the default). Send your matrix [myMatrix setSelectionByRect:NO], and you should get the selection behaviour you want. (The documentation is characteristically curt about this method. It states that passing YES allows selection of a rectangle of cells by dragging. What it doesn't mention explicitly is that it also affects shift-click selection behaviour.)

Yes, that's exactly what I understood by reading the doc.

Thanks,
Stephan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSMatrix shift selection (From: Stephan Burlot <email@hidden>)
 >Re: NSMatrix shift selection (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: NSMatrix shift selection
  • Next by Date: Redrawing table cells
  • Previous by thread: Re: NSMatrix shift selection
  • Next by thread: Redrawing table cells
  • Index(es):
    • Date
    • Thread