• 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
Just what is the format of NSHTMLPboardType?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Just what is the format of NSHTMLPboardType?


  • Subject: Just what is the format of NSHTMLPboardType?
  • From: Evan Gross <email@hidden>
  • Date: Tue, 31 Dec 2002 20:34:43 -0500

Hi all,

Just wondering, since I can't find anything really solid in the docs about
this, nor can I find any application that actually *writes* NSHTMLPboardType
to the pasteboard - what exactly does/would NSHTMLPboardType consist of?

Is it just straight-up HTML, written as a plain string? If so, is there a
specific encoding that must be used? Or is it something else entirely (a URL
or some other kind of reference)?

Are there any apps that actually place NSHTMLPboardType on the pasteboard? I
haven't been able to find one...

I ask because (related to a previous post about complex RTF) I tried
creating a filter service (NSIdentity-type) that equates
"CorePasteboardFlavorType 0x48544D4C" (written by MS Word) to
NSHTMLPboardType to see if I could get NSTextView to read it as though it
were NSHTMLPboardType, but got an exception from the text system when I
tried to do this. The filter service was definitely doing its job -
NSTextView did report that the preferred pasteboard type was
NSHTMLPboardType - it just couldn't do anything with it. Fiddling with the
contents of the pasteboard data (i.e. very simple HTML) didn't seem to help,
either.

Just curious...

Evan Gross
Rainmaker Research 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.

  • Prev by Date: NSTextView problem
  • Next by Date: Quit Application doesn't send window close methods
  • Previous by thread: NSTextView problem
  • Next by thread: Quit Application doesn't send window close methods
  • Index(es):
    • Date
    • Thread