• 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: "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


References: 
 >Mouse move messages sent to both superview and a subview (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: Best approach for selective spell-checking...
  • Next by Date: Re: Cocoa Graphics Parsing
  • Previous by thread: Mouse move messages sent to both superview and a subview
  • Next by thread: Re: Ideas required on testing an application install
  • Index(es):
    • Date
    • Thread