• 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
Re: Drag and Drop a File... help!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop a File... help!!


  • Subject: Re: Drag and Drop a File... help!!
  • From: Stephen Jensen <email@hidden>
  • Date: Sat, 7 Dec 2002 11:54:16 -0800

I've tried NSVCardPboardType... I think I implemented it correctly, but Address Book, Finder, and Palm just took the text version. I also looked at the Promised Files of Types... I came to the same conclusion that Buzz did. Any other ideas?



On Saturday, December 7, 2002, at 11:12 AM, Buzz Andersen wrote:

See the section "HFS Promises" in the 10.2 AppKit release notes

The somewhat strange way (IMHO) in which promised drags have been implemented in Cocoa might cause a conflict with his desire to preserve the ability to drag into Palm Desktop, Address Book, and other vCard savvy apps. Specifically, one has to use NSView's dragPromisedFilesOfTypes:fromRect:source:slideBack:event: method, which, at least as far as I can tell, doesn't give you the opportunity to specify any other representations of the data on the pasteboard (this has been discussed on the list before). So, unless the other programs can handle HFS promises, you're out of luck. Am I wrong about this?

Also, another contraindication to the use of promised drags (at least at present) is that the Finder has an annoying bug that can come into play with 10.2's spring-loaded folder feature. If you drop a promised file on a Finder folder and mistime it so that you release the drop right before the folder springs open, all of the sudden the Finder becomes confused and the icons in the parent folder stop highlighting. This isn't *that* bad, I suppose, unless the parent folder happens to be the Desktop, in which case your only option for getting things back to normal is to restart the Finder. I know all of this because I am working on an application that uses promised drags, and I have already dealt with Apple Developer Tech Support on this very issue (they confirmed that it is simply a Finder bug that affects both Carbon and Cocoa apps).

What I would personally look into is the new "NSVCardPboardType" data type added to NSPasteboard in 10.2 (see the documentation on NSPasteboard). I've never tried using it, but I think it might do the trick...

--
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.
_______________________________________________
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: Drag and Drop a File... help!!
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Drag and Drop a File... help!! (From: Buzz Andersen <email@hidden>)

  • Prev by Date: Re: Drag and Drop a File... help!!
  • Next by Date: Re: Nib establishConnection Question
  • Previous by thread: Re: Drag and Drop a File... help!!
  • Next by thread: Re: Drag and Drop a File... help!!
  • Index(es):
    • Date
    • Thread