Re: Preventing unwanted slidebacks
Re: Preventing unwanted slidebacks
- Subject: Re: Preventing unwanted slidebacks
- From: olivier <email@hidden>
- Date: Thu, 16 Jan 2003 11:44:23 -0600
I did a similar things to you, and never get a slideback.
I set slideBack: YES and always return NO to
tableView:writeRows:toPasteboard:
Sometimes it might take up to ten or fifteen seconds to create the
file, but i never had a problem.
Hope this help, olivier
On Thursday, January 16, 2003, at 11:03 AM, Buzz Andersen wrote:
Hi all,
I have been wrestling with HFS promised drags in Cocoa for some time
now, and am seriously on the verge of writing my own Cocoa wrapper for
the Carbon drag manager to compensate for the limitations of Apple's
implementation. Until I can accomplish that, however, I would very
much like to fix a current annoyance in an application of mine:
sometimes, when doing a promised drag, the drag "slides back," even
though the actual drag was successful.
This happens even though I specify "slideBack: NO" when I call
"dragPromisedFilesOfTypes:". My current theory about why this is
happening is that I am dragging from a table view, and the view is
timing out waiting for "tableView:writeRows:toPasteboard:" to return
and simply concluding that the drag was unsuccessful. My
understanding is that this method is normally supposed to simply put
something on the pasteboard and quickly return "YES" or "NO". Since I
have to use that method to call "dragPromisedFilesOfTypes:," which
doesn't return until the entire drag cycle is completed, I theorize
that the behavior I am experiencing is related to a timeout.
Does anyone have any ideas about how I could work around this for the
moment? It doesn't have to be pretty since it is only needed until I
can implement a better drag mechanism. Perhaps there is something
that I could override in an NSTableView subclass to prevent the
slideback from drawing?
Any help would be *greatly* appreciated, since I am banging my head
against the wall trying to solve this problem!
--
Buzz Andersen
email: email@hidden
web: http://www.scifihifi.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.