• 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
Copying custom attachment NSTextView data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying custom attachment NSTextView data


  • Subject: Copying custom attachment NSTextView data
  • From: David Dunham <email@hidden>
  • Date: Tue, 22 Aug 2006 21:20:18 -0700

I've got a custom NSTextAttachmentCell subclass. In an effort to get its data written to the pasteboard when the entire NSTextView is copied, I tried providing textView:writablePasteboardTypesForCell:atIndex: and textView:writeCell:atIndex:toPasteboard:type: delegates. Neither one seems to get called. (They do get called for a vanilla NSTextAttachmentCell, but only when it's the only character selected.)

I am able to subclass NSTextView and override writeSelectionToPasteboard:type:, but that only works when just the NSTextAttachmentCell subclass is selected.

(If I save a document, my subclass is saved just fine. But that goes through NSCoder, not a pasteboard.)

------------
David Dunham email@hidden http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." - Turkish proverb


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Re: Crash on any project open
  • Next by Date: arrgh! include files not found
  • Previous by thread: undefined symbol <int>
  • Next by thread: arrgh! include files not found
  • Index(es):
    • Date
    • Thread