• 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 and Drop from Finder to Source List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and Drop from Finder to Source List


  • Subject: Drag and Drop from Finder to Source List
  • From: Jonathan Dann <email@hidden>
  • Date: Thu, 10 Jan 2008 17:24:00 +0000

Hi all,

I've already got NSTreeController working with NSOutlibeView and binding in a non-Core Data app but now I need some advice on how to one allow certain file type drops.

I have a method that handles drops from the pasteboard for NSFilenamesPboardType

What would be the best way to verify that the file the user is dragging is a text file, of any encoding, that is a little more robust than just checking the file extension. As later I will need to support dragging of image types too, and possibly PDFs

I'm not sure where to look in the documentation so sorry if this is a simple question, im not very experienced yet!

Thanks!

Jonathan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Drag and Drop from Finder to Source List
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSInteger problem
  • Next by Date: Re: NSMutableAttributedString binding
  • Previous by thread: Re: NSMutableAttributedString binding
  • Next by thread: Re: Drag and Drop from Finder to Source List
  • Index(es):
    • Date
    • Thread