• 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: App-specific URLs and the pasteboard. Need help.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App-specific URLs and the pasteboard. Need help.


  • Subject: Re: App-specific URLs and the pasteboard. Need help.
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 18 Jan 2008 17:21:32 +0000

On 18 Jan 2008, at 17:05, Duncan Champney wrote:

Have you tried NSURLPboardType?

Thanks for your reply. I forgot to include the code where i list my types. I declare my types as NSURLPboardType.

That's not what the code you sent to the list says; it says "NSStringPboardType".


Or NSHTMLPboardType with HTML containing a link?

That sounds like a real possibility. Do you know what you have to write to the pasteboard for an NSHTMLPboardType? An NSString containing the HTML?

I *think* it wants an NSData containing HTML, rather than an NSString. i.e. if you had an NSString, you would need to use - dataUsingEncoding: to create an NSData using a suitable string encoding (which you might consider indicating in your HTML using either the <?xml?> tag or a <meta> tag).


The documentation on using the pasteboard is a little thin, truth be told.

I agree that it's a little vague in places.

The most compatible option would probably be RTF, actually, but HTML *should* work I think.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


References: 
 >App-specific URLs and the pasteboard. Need help. (From: Duncan Champney <email@hidden>)
 >Re: App-specific URLs and the pasteboard. Need help. (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Outline view selection doesn't move when items are inserted?
  • Next by Date: Re: Force NSOpenPanel's -panel:shouldShowFilename: to get called again?
  • Previous by thread: Re: App-specific URLs and the pasteboard. Need help.
  • Next by thread: Re: App-specific URLs and the pasteboard. Need help.
  • Index(es):
    • Date
    • Thread