One question/suggestion. I would like to know your opinion about leaving the decision of what view can be dropped in another view to the delegate and the interface shoudl be:
@interface UIView (DragDrop)
- (void) makeDraggable;
- (void) makeDroppable;
- (void) setDragDropDelegate:(id)delegate;
- (void) setDragMode:(UIViewDragDropMode)mode;
@EnD
@protocol UIViewDragDropDelegate
....
@optional
- (BOOL)draggableView:(UIView *)view shoudDropOnDroppableView:(UIView *)view;
....
@EnD
Looks easier to me when using it (i can dynamicaly add draggables/droppables and all is handled in delegate). Also method for destroying the draggable/droppable behaviour of view could be useful (something like -(void)destroyDraggable; -(void)destroyDroppable;)
Also if You are interested in any contribution It'll be my pleasure :)
Cheers
One question/suggestion. I would like to know your opinion about leaving the decision of what view can be dropped in another view to the delegate and the interface shoudl be:
@interface UIView (DragDrop)
@EnD
@protocol UIViewDragDropDelegate
....
@optional
....
@EnD
Looks easier to me when using it (i can dynamicaly add draggables/droppables and all is handled in delegate). Also method for destroying the draggable/droppable behaviour of view could be useful (something like -(void)destroyDraggable; -(void)destroyDroppable;)
Also if You are interested in any contribution It'll be my pleasure :)
Cheers