objective c - creating a sortable grid in Cocoa (horizontally) -
i'm struggling create view sortable elements in it.
what i'm looking have elements, 1-5 in 1 row, can drag them left , right , rearrange them, while adding , deleting.
like this, first row (1 2 3 4): jquery sortable
inside these elements want have view, more controls, , changeable items. tableviews seem sort vertically, , collectionview doesn't either, far know.
are there implementations have look? approach here?
thanks in advance! chris
i've had same problem once , haven't found nothing cocoa purpose. in principle thsi should help:
use nsmutabledictionary keys each field, e.g. field_1 , value, contains positionnr in collectionview. when reordering adjust values change.
the data collectionview nsmutablearray, created/updated using number display dictionary = value. array can contain data, other array, , used collectionview.
Comments
Post a Comment