• 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: Unresponsive mouseMoved method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unresponsive mouseMoved method


  • Subject: Re: Unresponsive mouseMoved method
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 28 Mar 2007 18:05:19 -0700

On 3/28/07, Bob Smith <email@hidden> wrote:
The window delegate cannot handle mouse events because those do not
follow the responder chain as do actions; mouse events are sent by
the window to the view in which the event occurred, and nowhere
else.  You have done the correct thing by extending your view class,
and I don't see anything wrong with your solution.

Actually he didn't extend his view class he made _all_ NSView objects implement mouseMoved: via a category *cringe*. This possibly will break existing NSView objects by possibly hiding their real implementation of mouseMoved: and/or causes unrelated views to message window delegates (say a window delegate implements moveMoved: for unrelated reasons). So I would say his solution isn't really a good one.

It isn't clear to me exactly what he is trying to achieve at a
high-level... maybe a better way exists that doesn't involve a window
delegate handling mouse moved events from views contained in the
window... sounds like tracking rects may possibly fill the need?

- Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Unresponsive mouseMoved method
      • From: Bob Smith <email@hidden>
References: 
 >Unresponsive mouseMoved method (From: "Steve Bryan" <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Bob Smith <email@hidden>)

  • Prev by Date: Re: Unresponsive mouseMoved method
  • Next by Date: Re: [Q] Cocoa-Java bridge
  • Previous by thread: Re: Unresponsive mouseMoved method
  • Next by thread: Re: Unresponsive mouseMoved method
  • Index(es):
    • Date
    • Thread