• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't receive mouseMoved: message in custom QCView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can't receive mouseMoved: message in custom QCView
      • From: Kenny Leung <email@hidden>
  • Prev by Date: Re: Interface Builder Bug? (NSTableView & Column Size)
  • Next by Date: RE: COM programming in Mac
  • Previous by thread: Re: How to preserve an NSArrayController's selection when an item's value changes?
  • Next by thread: Re: Can't receive mouseMoved: message in custom QCView
  • Index(es):
    • Date
    • Thread