Re: dealing with NSURLPasteboardType
Re: dealing with NSURLPasteboardType
- Subject: Re: dealing with NSURLPasteboardType
- From: Gibbons Burke <email@hidden>
- Date: Thu, 30 May 2002 10:47:37 -0500
Here's a neat shortcut for the OmniWeb browser that performs a Google search of the Apple Developer Connection documentation from the "command line" (address bar) of the browser:
OmniWeb -> Preferences -> Shortcuts
Shortcut Destination URL
adc@
http://developer.apple.com/cgi-bin/search.pl?q=%@&ie=utf8&oe=utf8
Type "adc NSURL drag drop" or "adc NSTableView" into the OmniWeb address bar and a Google-hosted search will find a relevance-ranked list of canonical Apple documents that deal with the search terms. The Google engine does an amazing job of finding the right docs; this short cut really makes that facility quick and easy to use.
Gibbons Burke
At 1:22 PM -0700 5/28/02, Matt Rollefson wrote:
>
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.
_______________________________________________
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.