• 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: Getting current mouse position after scroll
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting current mouse position after scroll


  • Subject: Re: Getting current mouse position after scroll
  • From: John Joyce <email@hidden>
  • Date: Thu, 2 Dec 2010 12:22:01 +0900

On Dec 2, 2010, at 12:19 PM, Rick Mann wrote:

> Cocoa.
>
> I have a view that shows the coordinates of the current mouse location in it. I update this via -mouseMoved: But if the user scrolls the view with a scroll ball, I don't get mouse moved events.
>
> 1) What's the best way to react to scroll changes? I'm currently observing the NSViewBoundsDidChangeNotification.
>
> 2) How can I get the mouse position at this point? I don't have an NSEvent to check.
>
> TIA,
>
> --
> Rick
If the user is only scrolling, the mouse likely has not moved.

But let me be the first to ask,
What are you really trying to do?_______________________________________________

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

  • Follow-Ups:
    • Re: Getting current mouse position after scroll
      • From: Rick Mann <email@hidden>
References: 
 >Getting current mouse position after scroll (From: Rick Mann <email@hidden>)

  • Prev by Date: Getting current mouse position after scroll
  • Next by Date: Re: Getting current mouse position after scroll
  • Previous by thread: Getting current mouse position after scroll
  • Next by thread: Re: Getting current mouse position after scroll
  • Index(es):
    • Date
    • Thread