dragPromisedFilesOfTypes produces CFURLGetFSRef
dragPromisedFilesOfTypes produces CFURLGetFSRef
- Subject: dragPromisedFilesOfTypes produces CFURLGetFSRef
- From: Buzz Andersen <email@hidden>
- Date: Wed, 25 Sep 2002 15:31:52 -0600
Hi,
I am trying to use a view's "dragPromisedFilesOfTypes" method to
essentially copy existing files from a known location to an arbitrary
drag destination in the Finder. The outline of what I am doing is
basically as follows:
1. The view's "mouseDragged" method calls "dragPromisedFilesOfTypes",
specifying the view itself (a custom view which implements the
"NSDraggingSource" protocol) as the source.
2. The view's "namesOfPromisedFilesDroppedAtDestination" method is
called when the file is dropped in the Finder.
3. "namesOfPromisedFilesDroppedAtDestination" then calls another method
which performs the actual copy (in a separate thread).
4. "namesOfPromisedFilesDroppedAtDestination" finally returns the names
(not paths) of the promised files.
This works OK--the files are copied, the drag returns as successful,
etc. The only problem is that I see the following printed out to the
console:
CFURLGetFSRef failed
If everything else--the copy, the drag, etc.--seems to be working, does
anyone have any idea why I would get this message?
Any help would, as always, be most sincerely appreciated!
--
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.