Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
- Subject: Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
- From: Hsu <email@hidden>
- Date: Wed, 25 Sep 2002 20:32:33 -0700
I dont' think you need to do this. I think promise files are for files
that don't exist when the drag begins.
Karl
On Wednesday, September 25, 2002, at 02:31 PM, Buzz Andersen wrote:
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.
--
Some guy hit my fender, and I said to him, "Go forth, be fruitful, and
multiply." But not in those words.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.