Re: Autoscrolling in NSDraggingDestination

2013-02-06 Thread Kyle Sluder
On Tue, Feb 5, 2013, at 10:45 PM, Kyle Sluder wrote: > Typically one calls +startPeriodicEvents… in -draggingEntered:, and calls > +stopPeriodicEvents in -draggingExited:. Hmm, I think I'm conflating -wantsPeriodicDraggingUpdates with +[NSEvent startPeriodicEvents…]. There are places in our code

Re: Autoscrolling in NSDraggingDestination

2013-02-05 Thread Kyle Sluder
On Feb 5, 2013, at 6:53 PM, Graham Cox wrote: > So, the question is how can I tap into the dragging session loop to do the > autoscroll? Typically one calls +startPeriodicEvents… in -draggingEntered:, and calls +stopPeriodicEvents in -draggingExited:. --Kyle Sluder _

Re: Autoscrolling in NSDraggingDestination

2013-02-05 Thread Graham Cox
On 06/02/2013, at 12:31 PM, Kyle Sluder wrote: > On Tue, Feb 5, 2013, at 03:39 PM, Graham Cox wrote: >> I need to autoscroll my view when I'm handling -draggingUpdated: but >> -autoscroll: takes an NSEvent and I don't have one. I thought I could use >> [myWindow currentEvent] but that doesn't se

Re: Autoscrolling in NSDraggingDestination

2013-02-05 Thread Kyle Sluder
On Tue, Feb 5, 2013, at 03:39 PM, Graham Cox wrote: > I need to autoscroll my view when I'm handling -draggingUpdated: but > -autoscroll: takes an NSEvent and I don't have one. I thought I could use > [myWindow currentEvent] but that doesn't seem correct for the dragging > session. Why not? If you