autoscroll when receiving drags
autoscroll when receiving drags
- Subject: autoscroll when receiving drags
- From: Dominik Pich <email@hidden>
- Date: Tue, 4 Sep 2007 23:17:21 +0200
Hi,
I have a problem with the autoscroll functionality.
What I have is basicly a Table View of Images BUT implemented as a
custom NSView inside a NSScrollView
all ok :) My list works fine
Now I implemented the DraggingDestination protocol.
I can receive drags from other views and apps just fine
-draggingEntered is called
-draggingUpdated is called periodicly
all ok again :)
Now though comes the issue:
I want to implement autoscroll so the user can scroll while dragging
For that I do [self autoscroll:[[sender destinationWindow]
currentEvent]];
- When I receive 'local drags' meaning from anywhere inside the same
window all is good. The scrollView correctly scrolls when the user is
close to the border of my view
- When I receive drags from anywhere else (e.g. from the finder)
atoscroll goes crazy and scrolls to the bottom of the ScrollView at
which it gets stuck. (Apart from the autoscroll drags work)
My hunch is that it's something to do with a wrong event. Maybe
dragging from external windows ccauses no event to be generated for
the target windo? So I access a wrong event during draggingUpdated :/
Anyone got an idea? I cant be the first to do that... or is that
simply not possible or a bug? Or should I not use autoscroll at all
here?
Regards,
Dominik
_______________________________________________
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