On 06/02/2013, at 12:31 PM, Kyle Sluder <k...@ksluder.com> 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 seem correct for the dragging
>> session.
> 
> Why not? If you want to be safe, you can ask the current event if it is
> a mouse event.
> 
> (Ideally, the method would be -draggingUpdated:forEvent:…)
> 
> --Kyle Sluder


Actually, the problem isn't what I thought it was.

It seemed as if the current event wasn't being updated during the dragging 
session, but it turns out the problem is that -draggingUpdated: is only called 
while the drag is within my view - in which case there is nothing to 
autoscroll. If I drag beyond the edge of the view, -draggingUpdated: is no 
longer called, so I still can't autoscroll....

So, the question is how can I tap into the dragging session loop to do the 
autoscroll?

--Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to