• 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: Inserting a graphic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Inserting a graphic (From: David Remahl <email@hidden>)

  • Prev by Date: Re: Load NIB in dynamically loaded bundle.
  • Next by Date: Re: Anchor in TextView HTML
  • Previous by thread: Re: Inserting a graphic
  • Next by thread: ICMP/ping example
  • Index(es):
    • Date
    • Thread