Re: NSTextView Image Issues
Re: NSTextView Image Issues
- Subject: Re: NSTextView Image Issues
- From: Nicko van Someren <email@hidden>
- Date: Mon, 12 Apr 2004 18:46:42 +0100
On 12 Apr 2004, at 17:50, Douglas Davidson wrote:
The persistent portion of a text attachment is provided by the
NSTextAttachment's file wrapper. If you simply set an image on the
text attachment cell, that will not be sufficient; you must set the
file wrapper as well, and its contents will become the contents of the
attached file stored in the RTFD.
So what's the proscribed way to get a suitable NSFileWrapper in the
case where the image data has not come from a file? I have a program
which makes images using the NSImage method initWithPasteboard: and
often the data in the pasteboard is not related to any specific file.
Is there some generic way to get a file out of this or do I have to
special case every paste board content type and each image type?
Cheers,
Nicko
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.