سؤال

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