Getting Image from RTFD Data?
Getting Image from RTFD Data?
- Subject: Getting Image from RTFD Data?
- From: Craig Bakalian <email@hidden>
- Date: Mon, 12 May 2003 11:55:03 -0400
Hi,
I got a design issue here. In my app I can drag images into an
NSTextView. I am saving the image and text data in a NSData object.
It can be archived and unarchived. No big deal. Yet, I had made the
app capable of saving the contents of the NSData object as html. When
the user selects Export html... and the NSData object only contains
text all is well, yet if the user dragged an image on the text view,
the NSData object stores it as NSData, then the Export html... gets
funky and the tags screw up, and a browser can't open the beast.
Is there a way to sift through a NSData object and check to see if
there is any image data in it, and then pull it out?
Craig Bakalian
www.eThinkingCap.com/TestFactory/
_______________________________________________
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.