Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix Multi-Select



So I did a lot more research on this today...

And it turns out, it looks like NSMatrix IS multi-select by default. The problem comes from the same issue this guy ran into:

http://www.cocoabuilder.com/archive/message/cocoa/2003/12/15/89691

Specifically, he wanted to implement drag and drop support (so do I) - which from the looks of that email, means I have to implement mouseDown: and then manually call selectCellAtRow:column. The problem then is that selectCellAtRow:column appears to *deselect* any previously selected cells, which means basically that by implementing his solution for drag and drop, it basically breaks multi-selection.

SO... I looked to see if I could find any methods that explicitly said they do NOT deselect the previously selected cells, and I couldn't find any. Can anyone suggest a good way to do this?

Again, what I want is an NSMatrix which allows multi-selection AND drag-and-drop.

On Jan 29, 2008, at 8:02 AM, Jiva DeVoe wrote:

Hi,

I have a custom view which I have inherited from NSMatrix. Is there an easy built-in way to make NSMatrix be allow multi-selection? Or do I need to do some kind of hackery for it?

Thanks

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSMatrix Multi-Select (From: Jiva DeVoe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.