• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting Image from RTFD Data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: UndoManager doesn't work with saved documents
  • Next by Date: Re: Best way to build relative pathname?
  • Previous by thread: Re: UndoManager doesn't work with saved documents
  • Next by thread: Serial device driver
  • Index(es):
    • Date
    • Thread