Re: How to get multiple NSURLs from Finder drop.
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