Re: NSMatrix shift selection
Re: NSMatrix shift selection
- Subject: Re: NSMatrix shift selection
- From: Stephan Burlot <email@hidden>
- Date: Mon, 17 Jan 2005 11:03:58 +0100
Duh. Before asking this question I did my homework but I didnt notice
the default of setSelectionByRect was TRUE.
Next time, I'll try harder.
Thanks, problem solved.
Stephan
Le 17 janv. 05, à 10:55, John C. Randolph a écrit :
See [NSMatrix -setSelectionByRect:]
-jcr
On Jan 17, 2005, at 1: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've checked the HIG, and they just mention the fact that shift
extends the selection, doesnt tell how it should perform. But based
on iPhoto, iView, selecting everything between the two selected cells
is the expected user behavior.
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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