• 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
Re: Mouse move messages sent to both superview and a subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse move messages sent to both superview and a subview


  • Subject: Re: Mouse move messages sent to both superview and a subview
  • From: Oleg Krupnov <email@hidden>
  • Date: Wed, 7 Oct 2009 15:51:29 +0300

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 <email@hidden> 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 (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

  • Prev by Date: Re: Constructive Criticism
  • Next by Date: Remove NSToolbar close button
  • Previous by thread: Re: stringWithCString:length deprecation
  • Next by thread: Remove NSToolbar close button
  • Index(es):
    • Date
    • Thread