• 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
Why would scroll events not arrive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why would scroll events not arrive?


  • Subject: Why would scroll events not arrive?
  • From: Martin Wierschin <email@hidden>
  • Date: Fri, 26 Jun 2015 00:47:33 -0700

Hello everyone,

The quick overview: sometimes after working in my OSX app, scroll wheel events are no longer being dispatched to the key window's first responder. In fact, after overriding -[NSApplication sendEvent:] I can see that after the misbehavior is triggered, scroll events do not even arrive for my NSApp to process.

I can't reproduce the problem myself, but through debug builds and logging I've verified that the first responder is correct: a custom NSView subclass contained in an NSScrollView. During normal operation my NSApp receives scroll events and the correct view responds, eg:

> NSApplication sending event: NSEvent: type=BeginGesture loc=(477.961,402.031) time=835761.9 ...

> NSApplication sending event: NSEvent: type=ScrollWheel loc=(477,403) time=835761.9 ...
> -[MyView scrollWheel:] was called
> NSApplication sending event: NSEvent: type=ScrollWheel loc=(477,403) time=835761.9 ...
> -[MyView scrollWheel:] was called
> NSApplication sending event: NSEvent: type=EndGesture loc=(477.961,402.031) time=835762.0 ...

But after the user works with the app for a while and somehow triggers the misbehavior, my NSApp never sees another scroll event, just begin/end gestures:

> NSApplication sending event: NSEvent: type=BeginGesture loc=(463.438,410.973) time=835863.2 ...
> NSApplication sending event: NSEvent: type=EndGesture loc=(463.438,411.973) time=835863.3 ...


Is there any reason this could happen?

Thanks in advance for any ideas on possible causes,
~Martin Wierschin


_______________________________________________

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: Why would scroll events not arrive?
      • From: Uli Kusterer <email@hidden>
    • Re: Why would scroll events not arrive?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Generic Bitmap to NSImage
  • Next by Date: Re: Why would scroll events not arrive?
  • Previous by thread: Any way around the 'typealias' requirement here
  • Next by thread: Re: Why would scroll events not arrive?
  • Index(es):
    • Date
    • Thread