• 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
-[NSAttributedString initWithPasteboard:...] - which types are supported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSAttributedString initWithPasteboard:...] - which types are supported?


  • Subject: -[NSAttributedString initWithPasteboard:...] - which types are supported?
  • From: Jim Correia <email@hidden>
  • Date: Tue, 24 Jan 2006 21:04:26 -0500

I find myself needing to be able to extract multiple strings on the pasteboard (through dragged text clippings, and when Carbon apps are the drag source) so I need to re-implement a bit of

-[NSAttributedString initWithPasteboard:options:documentAttributes:error:]

by going down to the Pasteboard Manager (which supports multiple items per pasteboard) and using initWithData:..

Can anyone share what types initWithPasteboard looks for, and in what preferred order?

It looks like it may be WebArchives, RTFD, RTF, and NSStringPboardType. Anything else?

When the data is not sourced in a Cocoa application, what alternate flavors does NSStringPboardType fall back on, and in what order?

Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: invertrect, any cocoa versions suggested?
  • Next by Date: Re: collision nsbezierpath
  • Previous by thread: validateMenuItem not called
  • Next by thread: Finding third party library
  • Index(es):
    • Date
    • Thread