Title: Draw graphic inside NSTextView

Date: 2013-04-08 13:18:49

Tags: Cocoa , Drawing , Image , NSTextView , Text

After long time search, I found some examples:

  • Re: Drawing a line in NSTextView

_http://lists.apple.com/archives/cocoa-dev/2012/Apr/msg00003.html

  • Aligning a subview element with text in an NSTextView :

[http://www.cocoabuilder.com/archive/cocoa/123842-aligning-subview-element-with-text-in-an-nstextview-was-finding-vertical-pos.html](http://www.cocoabuilder.com/archive/cocoa/123842-aligning-subview-element-with-text-in-an-nstextview-was-finding-vertical-pos.html

[http://stackoverflow.com/questions/1777444/drawing-in-nstextfield](http://stackoverflow.com/questions/1777444/drawing-in-nstextfield

  • CocoaHeads Atlanta May ‘09: Aaron Hillegass on the Text System

[http://vimeo.com/4793853](http://vimeo.com/4793853

  • Image as TextView background

http://cocoadev.com/wiki/ImageAsTextViewBackground

I think the most important example is CocoaHeads Atlanta May ‘09. They have codes, which I’ve downloaded.