Re: Writing an image from a text view to file
Re: Writing an image from a text view to file
- Subject: Re: Writing an image from a text view to file
- From: Jeremy Dronfield <email@hidden>
- Date: Thu, 11 Mar 2004 21:59:36 +0000
On 11 Mar 2004, at 12:08 am, Mark Onyschuk wrote:
What you need to do is two things. First, you'll need to walk the
attributed string looking for attributes of the attachment type. The
value of the attribute is an NSFileWrapper that represents the image.
First walk the string, pulling out the attachments and saving them
where you will.
The trouble is, in the situation I described (where the content of the
view's text storage is derived from encrypted data), [attachment
fileWrapper] returns NULL. It only appears to work where there is an
original image file on disk.
-Jeremy
_______________________________________________
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.