Re: Inserting a graphic
Re: Inserting a graphic
- Subject: Re: Inserting a graphic
- From: John Hörnkvist <email@hidden>
- Date: Tue, 20 Nov 2001 15:46:35 +0100
On Monday, November 19, 2001, at 11:00 , David Remahl wrote:
I need to insert an NSImage into an NSTextView. I have checked out the
documentation, and the closest I can get is the replaceRange:withRTFD:.
So,
my question is, how can I generate an NSData object with the correct
RTFD
data for my NSImage? The 1994 openstep docu i found, said programmatic
RTFD
generation was not available. Has this changed? Should I instead use
some
other method? (maybe involving an NSPasteboard?).
NSTextAttachment/NSTextAttachmentCell is the thing to look at. (It's in
the AppKit.)
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com