Re: Autoscrolling in NSDraggingDestination
Re: Autoscrolling in NSDraggingDestination
- Subject: Re: Autoscrolling in NSDraggingDestination
- From: Kyle Sluder <email@hidden>
- Date: Tue, 05 Feb 2013 17:31:28 -0800
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
_______________________________________________
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