• 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: dealing with NSURLPasteboardType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: dealing with NSURLPasteboardType
      • From: Gibbons Burke <email@hidden>
    • Re: dealing with NSURLPasteboardType
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: dealing with NSURLPasteboardType (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Loading external code
  • Next by Date: Class —> Framework
  • Previous by thread: Re: dealing with NSURLPasteboardType
  • Next by thread: Re: dealing with NSURLPasteboardType
  • Index(es):
    • Date
    • Thread