• 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: How to get multiple NSURLs from Finder drop.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get multiple NSURLs from Finder drop.


  • Subject: Re: How to get multiple NSURLs from Finder drop.
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 03 Sep 2012 14:12:49 -0700

On Sep 3, 2012, at 1:32 PM, Todd Freese <email@hidden> wrote:

> I'm trying to get my App Sandboxed. I need to be able to accept a multi-file finder drop to import files. However, how did I get multiple NSURLs from the finder? There only seems to be two finder pasteboard types: NSFilenamesPboardType & NSURLPboardType.
>
> NSFilenamesPboardType won't work because it is passing strings. NSURLPboardType only accepts one a single file.
>
> What am I missing here?

Use the modern NSPasteboardItem API instead. You can access multiple items, each one being an NSURL.

--Kyle Sluder
_______________________________________________

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: How to get multiple NSURLs from Finder drop.
      • From: Todd Freese <email@hidden>
References: 
 >How to get multiple NSURLs from Finder drop. (From: Todd Freese <email@hidden>)

  • Prev by Date: Re: Network and DarkWake
  • Next by Date: Re: System Menu Bar
  • Previous by thread: How to get multiple NSURLs from Finder drop.
  • Next by thread: Re: How to get multiple NSURLs from Finder drop.
  • Index(es):
    • Date
    • Thread