NSCollectionView

  • hello,

    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.

    Many Thanks,
    Georg_______________________________________________
    MacOSX-dev mailing list
    <MacOSX-dev...>
    http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • 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.
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today