NSCollectionView
I. Savant
idiotsavant2005 at gmail.com
Thu Nov 1 06:40:01 PDT 2007
Georg:
> I tried the new xCode 3 an I'm very happy to see the NSCollectionView
> in Interface Builder. Does anyone know how to enable drag reordering
> as it is possible with ist accessor IKImageBrowserView. I cannot find
> anything on the net about it.
Sadly, it seems there's no public means of supporting drag and drop
with a collection view. However, if you subclass NSCollectionView, you
may be able to do your own legwork (since it's laid out in a
predictable grid) and calculate the drop point then re-index your
model based on that.
In a few weeks time, I might go that route with a new in-house
project. If I develop anything I'm not ashamed of, I'll post it on
cocoadev.com. :-) In the meantime, hopefully someone (
cocoadevcentral.com? ) will come up with something better. That'd save
some effort.
--
I.S.
More information about the MacOSX-dev
mailing list