It seems that not only mouseMoved, but all mouse events, such as
mouseDown, mouseUp, mouseDragged etc. are delivered to both superview
and subview.

How do I force the mouse events to be delivered to only the subview?

On Tue, Jul 21, 2009 at 7:07 AM, John C. Randolph <j...@mac.com> wrote:
>
> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to