• 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
inserting images in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inserting images in NSTextView


  • Subject: inserting images in NSTextView
  • From: Jake MacMullin <email@hidden>
  • Date: Fri, 8 Feb 2002 10:56:19 +1030

I want to programmatically insert images in to a NSTextView. I know that I can do this by using replaceDataInRangeWithRTFD(NSData) (using the Java API's). But how do I get my image in to a NSData object? If possible, I don't want to have to read the data from a file each time, but include the image as a resource within my Application Bundle.

Regards,

Jake MacMullin
_______________________________________________
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: inserting images in NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Disable the drag snap-back?
  • Next by Date: burning cd with cocoa
  • Previous by thread: Re: Offscreen drawing again ...
  • Next by thread: Re: inserting images in NSTextView
  • Index(es):
    • Date
    • Thread