Re: NSServices and NSPasteboard
Re: NSServices and NSPasteboard
- Subject: Re: NSServices and NSPasteboard
- From: Evan Gross <email@hidden>
- Date: Mon, 21 Jan 2008 23:51:06 -0500
- Thread-topic: NSServices and NSPasteboard
On 20/01/08 5:08 PM, "Denise Eatherly" <email@hidden> wrote:
> Hi,
>
> Using NSServices, I'm not receiving data for the PBoard types
> expected. For example, I would expect to get NSHTMLPBoardType from
> Safari if I select the entire page. I would expect to get
> NSRTFDPBoardType from TextEdit if I select the entire contents of an
> rtfd document. I receive neither. In fact, under Leopard, I don't
> see anything useful in the pasteboard. There is a pasteboard type
> "dyn.agu8y63....." which shows up whether I have selected rtfd text
> or html text. It appears to be a dynamic UTI, but the data it
> references also seems to be plain text.
>
> At least, under Tiger there were some flavors I could use to get all
> the data. Is the Carbon Pasteboard Manager any better? I thought
> Apple was discouraging Carbon use.
>
> Any insight would be greatly appreciated,
> Denise
>
It sounds to me like you're running into the bug described here:
<http://www.rainmakerinc.com/kb/index.php?article=87>
(scroll down to the second known issue regarding services and multiple
pasteboard formats)
This has been filed as <rdar://5572825>, couldn't hurt if you filed a
duplicate!
NOW, as for expecting to get NSHTMLPBoardType, well, don't. I've never
encountered an app that puts it on either the general or services
pasteboard. I have never seen documentation describing NSHTMLPBoardType (I
wouldn't assume it's straight-up HTML, either). I'd sure be happy to witness
its actual existence! Anyone?
Hope that helps,
Evan Gross
--
Evan Gross, President, Rainmaker Research Inc.
Developers of Macintosh and Windows Software
Spell Catcher for Mac OS and Windows
http://www.rainmakerinc.com/
_______________________________________________
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