• 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: Reading text attachments from pasteboard into NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading text attachments from pasteboard into NSTextView


  • Subject: Re: Reading text attachments from pasteboard into NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 23 Jan 2008 18:00:04 -0800


On Jan 23, 2008, at 7:33 AM, Kai BrĂ¼ning wrote:

NSTextView seems to have broad support for copying text attachments to pasteboards in whatever custom format is desired:
- textView:writablePasteboardTypesForCell:atIndex: delegate method
- textView:writeCell:atIndex:toPasteboard:type: delegate method


But I can't find similar support for reading from a pasteboard. From what I have seen, the only method seems to be to put an attributed string with the text attachment(s) in it on the pastboard. While this is possible, I would rather like to convert some custom format into a text attachment the moment it is read from the pasteboard.

You would do this with the standard mechanisms for extending NSTextView pasteboard reading--see the header file comments on "Pasteboard support", notably for -readablePasteboardTypes and - readSelectionFromPasteboard:type:.


Douglas Davidson

_______________________________________________

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: 
 >Reading text attachments from pasteboard into NSTextView (From: Kai BrĂ¼ning <email@hidden>)

  • Prev by Date: Re: Core Data & ManagedObjectContext
  • Next by Date: Re: import
  • Previous by thread: Reading text attachments from pasteboard into NSTextView
  • Next by thread: Garbage Collection
  • Index(es):
    • Date
    • Thread