Most likely, the method signature for drawViewis incorrect. From the link of the NSTimer class:
. :
- (void)timerFireMethod:(NSTimer*)theTimer
, drawView :
- (void)drawView:(NSTimer*)theTimer
{
}
, ( , "drawView" ):
animationTimer = [NSTimer scheduledTimerWithTimeInterval:(NSTimeInterval)((1.0 / 60.0) * animationFrameInterval) target:self.delegate selector:@selector(drawView:) userInfo:nil repeats:TRUE];
, , drawView ( , ). , ( ). , NSView, setNeedsDisplay, , NSView , NSView drawRect:. , , Objective-C, , . , setNeedsDisplay.