I understand NSTextView uses attachments for images inserted. Is there any way of accessing the images, or attachments, in an NSTextView?
Asked
Active
Viewed 1,127 times
0
-
1You should be able to do this by getting the NSAttributedString and getting the attachments out of it. This may help you as well http://stackoverflow.com/questions/5300427/nstextview-insert-image-in-between-text – Keith Smiley Jun 28 '13 at 23:05
1 Answers
1
Thanks to this comment, I was able to work out how to get NSImage or NSData objects from images and files that are inserted in an NSTextView. I've put my (rough, not perfect) code on GitHub, here.

Community
- 1
- 1

Seb Jachec
- 3,003
- 2
- 30
- 56