Re: Issues with NSTextView Attachments
Re: Issues with NSTextView Attachments
- Subject: Re: Issues with NSTextView Attachments
- From: Gordon Apple <email@hidden>
- Date: Sat, 24 Aug 2013 11:28:40 -0500
- Thread-topic: Issues with NSTextView Attachments
Thanks, Kyle. I¹ll look into that. It¹s not clear exactly how this gets
used, especially within an attrituted string, but, hopefully, I¹ll figure it
out.
Reference docs are good to have, but they are often (and usually) deficient
in telling you how to use it. Frameworks are somewhat akin to giving you
all the pieces of an automobile but letting you figure out how to actually
construct an automobile.
I wish someone really knowledgable would write a book on text editing, maybe
in the Prag Programming series. Maybe it¹s too narrow a subject for broad
dissemination, but I think a lot of people would be interested, especially
now that much of it is migrating to iOS. I could write a chapter on text
containers. I¹ve had a text container for years now that does what the new
iOS stuff does, and more, on MacOS. But there is so much I don¹t know.
On 8/22/13 8:24 PM, "Kyle Sluder" <email@hidden> wrote:
> On Thu, Aug 22, 2013, at 04:40 PM, Gordon Apple wrote:
>> > 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.
>
> It uses RTFD, but it might be the case that RTFD might only support file
> wrappers.
>
> Have you implemented -[<NSTextViewDelegate>
> textView:writablePasteboardTypesForCell:atIndex:] and
> -[<NSTextViewDelegate> textView:writeCell:atIndex:toPasteboard:type:]?
>
> --Kyle Sluder
_______________________________________________
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