Re: dragPromisedFilesOfTypes clears drag pasteboard
Re: dragPromisedFilesOfTypes clears drag pasteboard
- Subject: Re: dragPromisedFilesOfTypes clears drag pasteboard
- From: The Karl Adam <email@hidden>
- Date: Thu, 5 May 2005 10:01:51 -0400
This comes up very often on this list, so you should search for
Promise Drags at Cocoabuilder or mamasam for the previous discussions
of this topic. For some quick code you can look at:
http://matrixpointer.com/karl/2005/01/26/hfs-file-promises-in-cocoa/
There is more code necessary if your overriding a table or outline
view or any other specialized uses, but that is the crux of mu
solution to the problem you state.
-Karl
On 5/5/05, Robert Vasvari <email@hidden> wrote:
> The NSView method
> "dragPromisedFilesOfTypes:fromRect:source:slideBack:event:"
> unfortunately clears the drag pasteboard by invoking
> declareTypes:owner. It thereby prevents me from
> putting additional info (like of type
> NSURLPasteboardType) on the drag pasteboard. Yes, I
> could use a private pasteboard, but then other apps
> could not use the data. I think,
> dragPromisedFilesOfTypes should not obliterate data
> for the types it does not use. Since this method does
> not return until the drag is over, I see no workaround
> this problem. Let me know if there is any.
> R
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> 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
>
_______________________________________________
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