Copying custom attachment NSTextView data
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