• 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
Drag to Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag to Finder


  • Subject: Drag to Finder
  • From: John Nairn <email@hidden>
  • Date: Thu, 23 Jan 2003 12:39:56 -0700

I recall messages saying the Finder will not accept dragged types and
create files and I have not been able to do it in my applications. I
just noticed, however, that I can drag a picture from a web site in
Safari to my desktop and it appears on the desktop as a file. I would
like to do the same in my application but it does not work.

I have tried following dragging types

NSPDFPboardType: some applications accept it, but Finder does not

NSFileContentsPboardType: Finder ignored it

NSFilenamesPboardType: Finder ignored it

NSFilesPromisePboardType: I found Apple documentation on this at

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/
ProgrammingTopics/DragandDrop/Tasks/DraggingFiles.html

but it appears to be a different dragging process. The sample code used
[self dragPromisedFilesOfTypes] instead of [self dragImage]. This
difference is a problem because I want to do both at once. I want to
drag PDF version of some graphics and have it accepted in documents of
applications that accept PDF but converted to a file if accepted by the
Finder. Is it possible?

------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu/~nairn
_______________________________________________
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.

  • Prev by Date: Re: Green, Yellow and Red glob window buttons
  • Next by Date: Memory and dictionary's setObject : strange behavior
  • Previous by thread: Re: dragging from NSToolbar
  • Next by thread: Memory and dictionary's setObject : strange behavior
  • Index(es):
    • Date
    • Thread