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

NSTextView Image Issues


  • Subject: NSTextView Image Issues
  • From: "Ian G. Gillespie" <email@hidden>
  • Date: Sun, 11 Apr 2004 13:56:22 -0700

Hi,

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. When I make the text view appear again and I use replaceCharactersInRange:withRTFD: using the returned data the string display fine, but the image is gone. I tried writing the NSData from the RTFDFromRange to a file to see what it looked like and the image is not in it either. Does anyone have any idea why RTFDFromRange is not working when the image appears in the text view? If you want to see any other code (like how I insert the image into the text view) please let me know.

Thanks,
Ian
_______________________________________________
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: Douglas Davidson <email@hidden>
  • Prev by Date: Debugging problem
  • Next by Date: Re: [OT] Software Piracy
  • Previous by thread: Re: Debugging problem
  • Next by thread: Re: NSTextView Image Issues
  • Index(es):
    • Date
    • Thread