FROM : Jeremy Dronfield
DATE : Sun Nov 21 20:34:42 2004
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
DATE : Sun Nov 21 20:34:42 2004
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
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

