Commits

Ivan Vučica committed c336fbe

Fixed some warnings. Dropping of stones begins immediately after click instead of waiting for the shrinking animation to finish.

Comments (0)

Files changed (2)

         [p performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.5];
         
     }
+    [self findHoles];
     
-    
-    [self performSelector:@selector(findHoles) withObject:nil afterDelay:0.5];
+    //[self performSelector:@selector(findHoles) withObject:nil afterDelay:0.5];
 }
 -(void)mouseUpOnPellet:(SGPelletView*)pellet
 {
 
 #import "SGPelletView.h"
 #import <QuartzCore/QuartzCore.h>
+#import "SGBoardView.h"
 
 @implementation SGPelletView
 @synthesize stoneImage = _stoneImage;
 
 -(void)mouseEntered:(NSEvent *)theEvent
 {
-    [self.superview mouseEnteredPellet:self];
+    [((SGBoardView*)self.superview) mouseEnteredPellet:self];
 }
 -(void)mouseExited:(NSEvent *)theEvent
 {
-    [self.superview mouseExitedPellet:self];
+    [((SGBoardView*)self.superview) mouseExitedPellet:self];
 }
 -(void)mouseDown:(NSEvent *)theEvent
 {
-    [self.superview mouseDownOnPellet:self];
+    [((SGBoardView*)self.superview) mouseDownOnPellet:self];
 }
 -(void)mouseUp:(NSEvent *)theEvent
 {
-    [self.superview mouseUpOnPellet:self];
+    [((SGBoardView*)self.superview) mouseUpOnPellet:self];
 }
 
 -(void)applyNewPosition:(NSString*)newPosition