Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comment

  • Loading branch information...
commit 90db5867f70d27f769ac44aa37388cf5ca7d351e 1 parent 6978544
Alexis Gallagher authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 DragDropSpike/ViewController.m
8 DragDropSpike/ViewController.m
View
@@ -17,7 +17,7 @@ - (NSString *)recursiveDescription;
@end
// helpers for moving views in the view hierarchy but not onscreen
-@implementation UIView (motionless)
+@implementation UIView (MCKmotionless)
-(void)motionlessAddSubview:(UIView*)view
{
CGRect newFrame = [view.superview convertRect:view.frame toView:self];
@@ -76,10 +76,12 @@ -(void)handleDraggablePan:(UIPanGestureRecognizer*)theRecognizer
{
MCKPanGestureRecognizer * recognizer = (MCKPanGestureRecognizer*)theRecognizer;
- UIView * donorView;
- UIView * absorberView;
+ // FIXME: should be set at intialization
NSObject <MCKDnDAbsorberProtocol> * absorberDelegate = self;
NSObject <MCKDnDDonorProtocol> * donorDelegate = self;
+
+ UIView * donorView; // will be detected at drag time
+ UIView * absorberView; // will be detected at drop time
UIView * theView = recognizer.view;
Please sign in to comment.
Something went wrong with that request. Please try again.