• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dragPromisedFilesOfTypes produces CFURLGetFSRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
      • From: Hsu <email@hidden>
  • Prev by Date: launching tasks as root
  • Next by Date: Re: Book-OT
  • Previous by thread: launching tasks as root
  • Next by thread: Re: dragPromisedFilesOfTypes produces CFURLGetFSRef
  • Index(es):
    • Date
    • Thread