• 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: NSServices and NSPasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSServices and NSPasteboard (From: Denise Eatherly <email@hidden>)

  • Prev by Date: NSAppleEventDescriptor - getting a double (and other animals)
  • Next by Date: CocoaInCarbon + runModalForWindow glitch
  • Previous by thread: NSServices and NSPasteboard
  • Next by thread: Programmatic binding to Quartz Composition working in one direction
  • Index(es):
    • Date
    • Thread