GMGridView icon indicating copy to clipboard operation
GMGridView copied to clipboard

sortingDelegate additions: allow/disallow movement and insertion of items at certain index

Open timtrautmann opened this issue 13 years ago • 6 comments

Extended the sortingDelegate with two more optional delegate methods:

- (BOOL)GMGridView:(GMGridView *)gridView shouldAllowMovingCell:(GMGridViewCell *)view atIndex:(NSInteger)index; is called when a move is about to start. If this method returns NO, the move won't take place.

- (BOOL)GMGridView:(GMGridView *)gridView shouldAllowMovingCell:(GMGridViewCell *)view toIndex:(NSInteger)index; is called when an item is moved to a new position in the grid. If this method returns NO, the insertion won't take place.

timtrautmann avatar Feb 11 '12 20:02 timtrautmann

Thanks @Bringo. I'll review this with the new code base and merge.

gmoledina avatar Mar 26 '12 02:03 gmoledina

Will it be merged, please?

ghrom avatar Jun 29 '12 13:06 ghrom

Also wondering if this will be merged soon. Thanks.

chadpod avatar Aug 02 '12 06:08 chadpod

This feature is very interesting, when will it be merged?

robertomg avatar Sep 14 '12 14:09 robertomg

Still no news on when it'll be merged?

dvkch avatar Nov 09 '12 18:11 dvkch

ummmmmmm why not keep a simple bool for allowing dragging of cell and based on that flag add or remove the longtapgesture

kushal297 avatar Jul 30 '13 23:07 kushal297