mouseMoved messages (modifying DotView)
mouseMoved messages (modifying DotView)
- Subject: mouseMoved messages (modifying DotView)
- From: Graeme Phillipson <email@hidden>
- Date: Tue, 6 Nov 2001 14:14:34 +0000
Hello,
I'm learning cocoa, just did the Dot View tutorial. As an experiment to
see if I understand the event system I'm trying to see if I can modify
it to set the dot position whenever the mouse moves and not just on a
click.
The way I have done this is:
1) change the mouseDown method to mouseMoved
2) added [[self window]setAcceptsMouseMovedEvents:YES]; to initWithFrame
3) added a method acceptsFirstResponder which returns YES
4) connected the initailFirstRespond of the window object to the DotView
object in IB.
But it doesn't work! Could anyone point out what it is that I have done
wrong /not done?
Thanks,
Graeme Phillipson.