문제

I understand NSTextView uses attachments for images inserted. Is there any way of accessing the images, or attachments, in an NSTextView?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top