Re: Selection in NSCollectionView

2010-11-02 Thread Lee Ann Rucker
What I've done is have a custom NSView subclass that all my CollectionViewItems use, which subclasses hitTest: and mouseDown: - (NSView *)hitTest: (NSPoint)aPoint // IN { NSView *hitView = [super hitTest:aPoint]; if (hitView && ![hitView isKindOfClass:[NSTextField class]]) { hitView =

Re: Selection in NSCollectionView

2010-11-02 Thread Andrew Shamel
Hi there great and wise Cocoa-Dev! I am wondering if anyone knows if there has been any movement regarding how selection is handled in NSCollectionViews. I see there was some conversation on this subject a couple of years back (http://www.cocoabuilder.com/archive/cocoa/217489-selection-in-nsco

Re: Selection in NSCollectionView

2008-09-04 Thread Markus Spoettl
On Sep 4, 2008, at 12:56 AM, Quincey Morris wrote: The IconCollection sample code doesn't do this. If you drag over the collection, you get a marquee rectangle that selects everything inside it. I see no code to do this (beyond the hitTest override at the individual view level), so I conclud

Re: Selection in NSCollectionView

2008-09-04 Thread Quincey Morris
On Sep 3, 2008, at 23:32, Markus Spoettl wrote: I don't know about how to make this work with compound views - by that I mean views containing other standard Cocoa subviews. I can imagine things get considerably more difficult because those sub views all have their own event handling implem

Re: Selection in NSCollectionView

2008-09-03 Thread Markus Spoettl
On Sep 3, 2008, at 5:19 PM, Quincey Morris wrote: But even after I tried to do something similar, I never got the collection to select things using the mouse, so I gave up. (It does work in IconCollection, but I couldn't find out why, or what was different.) That was the 3rd time I gave up t

Re: Selection in NSCollectionView

2008-09-03 Thread Quincey Morris
On Sep 3, 2008, at 16:05, Rick Mann wrote: However, I don't seem to be able to change the selected item in the collection view. A third view, bound to the NSArrayController that runs the collection view, shows the values in the first object in the collection view. But if I try to click on t