Re: dealing with NSURLPasteboardType
Re: dealing with NSURLPasteboardType
- Subject: Re: dealing with NSURLPasteboardType
- From: Matt Rollefson <email@hidden>
- Date: Tue, 28 May 2002 13:22:31 -0700
On Tuesday, May 14, 2002, at 08:16 US/Pacific, Matt Neuburg wrote:
At 8:48 PM -0700 5/13/02, thus spake Hsu:
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSURLAdditions.html
On Monday, May 13, 2002, at 06:49 PM, Matt Neuburg wrote:
What do I do when I'm handed an NSURLPasteboardType? I don't see how to
get
the NSURL off the pasteboard. No NSPasteboard method returns an NSURL. I
can get a property list by asking for an NSString, but that's not an
NSURL
and I don't see how to convert it to one. I can get an NSData but that's
not an NSURL either and I don't see how to convert it to one. Thx - m.
Right you are - thank you. Just what I was after. (Thinks: And the Apple
folks wonder why people swear at the documentation?! I spent four hours
looking for this and never found it - and never would have, without having
it shown to me by another human being.) m.
A bit late responding to this message, but I don't understand why this was so hard. I did a search on the ADC site for "NSURL pasteboard" and the referenced document was the first hit.
Doing a search for NSURLPboardType also gets you to the NSURLAdditions document. And if you look in the topics hierarchy, under the Copying and Pasting topic, you'll find a document called Data Types that lists NSURLPboardType as one of the supported data types, and describes the methods for reading and writing that data type from and to a pasteboard. (This document also shows up in the hits for NSURLPboardType -- a bit further down, but on the first page of hits.)
Where were you looking for this information and not finding it? How could we change the documentation to make it easier to find?
Matt Rollefson (Rollie)
Manager: Cocoa & Developer Tools
Technical Publications
Apple Computer, Inc.
_______________________________________________
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.