inserting non RTF graphics into an NSTextView ?
inserting non RTF graphics into an NSTextView ?
- Subject: inserting non RTF graphics into an NSTextView ?
- From: Robert Miller <email@hidden>
- Date: Mon, 03 Dec 2001 13:09:04 -0500
- Organization: RFM & Associates
Hello,
Can someone tell me what the trick is to inserting a graphics object
into an NSTextView. Specifically I want to insert tiff images into an
NSTextView object at certain character locations. I 've poured over the
on-line documentation and was unable to find the clues that enable this
feature except for the reference to replaceCharactersInRange:withRTFD:
in the NSText class, rtf data which I do not have. I initialize an
NSImage using the class method imageNamed and then obtain its data using
TIFFRepresentation. I'de like to now insert that image into the
NSTextView. Are there any examples available on how to do this ?
Thanks for any help in advance,
Regards,
Bob M.