Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-17 Thread Markus Spoettl
On 17.03.12 02:21, Raleigh Ledet wrote: The "System" doesn't know if momentum scroll events will follow normal scroll event phrase or not. There is no way for the underlying driver to inform the system of this. Sorry. I have to deal with this problem inside appkit as well. It gets even more diffi

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Raleigh Ledet
Sorry to be late to this party. I've been busy. ;) The "System" doesn't know if momentum scroll events will follow normal scroll event phrase or not. There is no way for the underlying driver to inform the system of this. Sorry. I have to deal with this problem inside appkit as well. It gets ev

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Markus Spoettl
On 16.03.12 21:48, Seth Willits wrote: Perhaps there's a better time to do cleanup altogether? I'm hoping there is one, I'm not happy with the way its working right now. Thanks anyway! Well you could spitball about why you need post-scroll clean up. Maybe there's a way to eliminate it. The

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Seth Willits
On Mar 16, 2012, at 1:38 PM, Markus Spoettl wrote: > What I'm doing now is using -performSelector:withObject:afterDelay: with a > delay of about 0.1 seconds. Yeah, that's all I could figure doing. >> Perhaps there's a better time to do cleanup altogether? > > I'm hoping there is one, I'm not

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Markus Spoettl
On 16.03.12 20:29, Seth Willits wrote: Can you dispatch_async(main_queue, ^{ if (did not start momentum) cleanUp(); }); to insert that after the next handling of the event loop which should either start the momentum cycle or not (if it isn't needed)? I don't know if that cycle is guaranteed to

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Seth Willits
On Mar 16, 2012, at 11:38 AM, Markus Spoettl wrote: > I take it either (a) I'm the only one here having this problem or (b) it is > so badly explained that no one knows that I'm talking about? If it's (b) I > can try again... Never needed to do it. Can you dispatch_async(main_queue, ^{ if (

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Markus Spoettl
Hello, I take it either (a) I'm the only one here having this problem or (b) it is so badly explained that no one knows that I'm talking about? If it's (b) I can try again... Regards Markus On 11.03.12 20:43, Markus Spoettl wrote: Hello, in a custom view I'm processing -scrollWheel: even

Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-11 Thread Markus Spoettl
Hello, in a custom view I'm processing -scrollWheel: events for smooth scrolling using the trackpad. When the user flicks across the trackpad, scrolling events first go through a phase cycle delivered through [NSEvent phase] (NSEventPhaseBegan -> NSEventPhaseChanged -> NSEventPhaseEnded).