Re: Mouse move messages sent to both superview and a subview
Re: Mouse move messages sent to both superview and a subview
- Subject: Re: Mouse move messages sent to both superview and a subview
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 Jul 2009 21:07:03 -0700
On Jul 19, 2009, at 12:39 AM, Oleg Krupnov wrote:
I want to display one view on top on the other view, so according to
the documentation, I nest the topmost view inside the background view.
It works just fine except that the mouse move messages are sent to
both the subview and the superview, whereas I'd like them to be
directed only to the subview when it's visible. Why is this happening?
I used to think that normally the same mouse messages cannot be
delivered to more than one view. What is my mistake? Thanks!
I believe that any number of views can get mouseMoved events if they
get a -setAcceptsMouseMoved:YES message. They're not like mouseDown
and mouseUp.
-jcr
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden