Re: App-specific URLs and the pasteboard. Need help.
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