Re: Issues with NSTextView Attachments
Re: Issues with NSTextView Attachments
- Subject: Re: Issues with NSTextView Attachments
- From: Gordon Apple <email@hidden>
- Date: Thu, 22 Aug 2013 18:40:52 -0500
- Thread-topic: Issues with NSTextView Attachments
I guess the operative word here is ³custom². So how does NSTextView handle
attachments which are not custom, because it does? Why not RTFD? I thought
RTF didn¹t handle attachments.
So, it looks like I need to archive the attributed string segment as a
custom pboard type, in addition to the normal RTF, and prioritize that. In
my (internal) storage, I generally just archive the attributed string.
On 8/22/13 2:02 PM, "glenn andreas" <email@hidden> wrote:
> When NSTextView puts rich content on a pasteboard (for copy/paste or
> drag/drop), it converts the text to RTF. RTF has no concept of custom text
> attachment cells, so they get dropped.
>
> You'll need to add your own custom data type that preserves that content (such
> using an archive)
>
_______________________________________________
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