NSViewでmouseMoved

デフォルトではmouseMovedを継承してもイベントは拾えないみたいです

http://stackoverflow.com/questions/7543684/mousemoved-not-called

この辺り参照

- (id)initWithFrame:(NSRect)frameRect_ pixelFormat:(NSOpenGLPixelFormat*)format_
{
		if(self=[super initWithFrame:frameRect_ pixelFormat:format_]){
				NSTrackingArea* trackingArea_ = [[NSTrackingArea alloc] initWithRect:[self bounds] options:(NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved | NSTrackingActiveInKeyWindow | NSTrackingEnabledDuringMouseDrag ) owner:self userInfo:nil];
				[self addTrackingArea:trackingArea_];
				[trackingArea_ release];
				NSMutableArray* removeBeforePaintList_=[[NSMutableArray alloc]init];
				removeBeforePaintList=removeBeforePaintList_;
				alreadySetUp=false;
				[self setupCanvas];
		}
		return self;
}

-(void)updateTrackingAreas
{
		if(trackingArea){
				[self removeTrackingArea:trackingArea];
		}
		NSTrackingArea* trackingArea_=[[NSTrackingArea alloc]initWithRect:[self frame] options:(NSTrackingMouseEnteredAndExited |
																																								NSTrackingMouseMoved |
																																								NSTrackingActiveAlways )
																										owner:self
																								 userInfo:nil];
		[self addTrackingArea:trackingArea_];
		[trackingArea_ release];
	 
}

こんな感じでいいのでしょうか?