• 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
Re: NSTextView Image Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Image Issues


  • Subject: Re: NSTextView Image Issues
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 12 Apr 2004 09:50:58 -0700

On Apr 11, 2004, at 1:56 PM, Ian G. Gillespie wrote:

In my app I have a NSImageCell in a table where users can drag in an image and then when they double click it, I have a NSTextView appear over the image cell in the table and I insert the image at that row into the text view. Once the text view appears, the user can type next to the image and then when the text view closes, I extract the data using RTFDFromRange. This all works fine, except that the image is not archived (or at least archived correctly) in the returned NSData.

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.

Douglas Davidson
_______________________________________________
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: NSTextView Image Issues
      • From: Nicko van Someren <email@hidden>
References: 
 >NSTextView Image Issues (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: Re: Java-Cocoa drawing -- help!
  • Next by Date: Re: Java-Cocoa drawing -- help!
  • Previous by thread: NSTextView Image Issues
  • Next by thread: Re: NSTextView Image Issues
  • Index(es):
    • Date
    • Thread