Re: NSURLPboardType: Is this normal?
Re: NSURLPboardType: Is this normal?
- Subject: Re: NSURLPboardType: Is this normal?
- From: Jake Repp <email@hidden>
- Date: Wed, 11 Dec 2002 09:53:41 -0800
If you want to get file:// type URLs you can use [NSURL
fileURLWithPath:] with the file path components from the
NSFilenamesPboardType.
-jake
On Tuesday, December 10, 2002, at 10:27 PM, Thomas Harrington wrote:
I have an NSView subclass that accepts files dragged from the Finder.
If I want NSFilenamesPboardType, I can get an array of all files
dragged in like this:
NSPasteboard *pb = [sender draggingPasteboard];
NSArray *files = [pb propertyListForType:NSFilenamesPboardType];
But if I replace the type with NSURLPboardType, I only get a single
file URL.
Is this the way it's supposed to work? Why would I get only one file
out of many when I'm asking for NSURLPboardType?
--
Tom Harrington
email@hidden
_______________________________________________
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.