Can't receive mouseMoved: message in custom QCView
Can't receive mouseMoved: message in custom QCView
- Subject: Can't receive mouseMoved: message in custom QCView
- From: "Chen Ben" <email@hidden>
- Date: Tue, 21 Feb 2006 23:50:44 +0800
Hi, all
I have subclass the QCView, and try to let the custom view receive the
mouseMoved: message, but failed.
I have done this in the view:
- (void)awakeFromNib
{
NSLog(@"I am awake");
[[self window] becomeFirstResponder];
[[self window] setAcceptsMouseMovedEvents:YES];
}
but nothing happened.
Because I have already added the hitTest: message in the view, the
view can receive mouseDown:, mouseUp: and mouseDragged: messages
properly. However, it can't receive mouseMoved, mouseEntered and
mouseExited: messages.
What should I do now?
Thanks!
--
Ben Chen, Apple Technology Lab of Software Engineering School, Tongji University
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden