NSTextView Image Issues
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.