NSTableView: preventing drag image slideback
NSTableView: preventing drag image slideback
- Subject: NSTableView: preventing drag image slideback
- From: Jeremy Dronfield <email@hidden>
- Date: Sun, 21 Nov 2004 19:34:42 +0000
In my table view subclass, when the user drags a row outside the view
and releases it, the intention is that the data for that row is removed
and the drag ends in a poof animation. I've got this all working, but
with one problem: in addition to the poof, the drag image does a
slideback to its start location (i.e. the default behaviour after a
"rejected" drop operation). Is there any way to prevent this slideback
- i.e. to make the drag image just disappear at the point where it's
dropped?
It occurs to me that I could override -mouseDragged: and use
-dragImage:at:offset:event:pasteboard:source:slideBack:. I'm reluctant
to do this, however, since that would mean my table view needing direct
access to its data source, in order to write to the pasteboard. Surely
there should be a simpler way?
Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden