• 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
Writing an image from a text view to file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing an image from a text view to file


  • Subject: Writing an image from a text view to file
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 10 Mar 2004 15:52:44 +0000

I have a text view with some text and an image. For my own perverse reasons, I want to save the text into one file (that's okay, I can handle that) and the image into a completely separate file, rather than save the whole lot to rtfd.

I've retrieved the image as an NSTextAttachment. When using rtfd as the source for the view I can copy the image to file from the attachment's file inside the rtfd package. But when the view's contents come from encrypted data (as is more usual in my application) rather than a file package, [attachment fileWrapper] returns NULL. So my question is, how can I get the image out of the attachment and into a file? I know this is a slightly unusual question, but I'd be grateful for any leads.
-Jeremy

========================================
email@hidden

theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.


  • Follow-Ups:
    • Re: Writing an image from a text view to file
      • From: Frank Midgley <email@hidden>
  • Prev by Date: Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation
  • Next by Date: Re: modal windows (again)
  • Previous by thread: User's Context and Priviledges
  • Next by thread: Re: Writing an image from a text view to file
  • Index(es):
    • Date
    • Thread