UIView-DragDrop icon indicating copy to clipboard operation
UIView-DragDrop copied to clipboard

Naming suggestion

Open jakubknejzlik opened this issue 10 years ago • 1 comments

I must say, it works great! :) Anyway just for first time I've got problems with naming conventions. So my suggestion:

@interface UIView (DragDrop)...

  • (void) setDelegate:(id<UIViewDragDropDelegate>)delegate; to
  • (void) setDragDropDelegate:(id<UIViewDragDropDelegate>)delegate;

@protocol UIViewDragDropDelegate <NSObject>

  • (void) draggableView:(UIView *)view wasDroppedOnDropView:(UIView *)drop;

@optional

  • (BOOL) draggableViewShouldReturnToStartingPosition:(UIView*)view;
  • (void) draggingDidBeginForView:(UIView*)view; //same
  • (void) draggingDidEndWithoutDropForView:(UIView*)view; //same
  • (void) draggableView:(UIView *)view didHoverOverDropView:(UIView *)dropView;
  • (void) draggableView:(UIView *)view didUnhoverOverDropView:(UIView *)dropView; @end

jakubknejzlik avatar Nov 08 '14 23:11 jakubknejzlik

:+1:

ryanmeisters avatar Nov 26 '14 16:11 ryanmeisters