I am trying to create a (fairly trivial) program that will gather images from an online source and, one by one, add them to a display area on screen. Getting the image data, and even saving them to disk is not a problem, but I am stymied on getting them to display.
I have been trying to use a NSTextView, thinking that I can just add them somehow one-by-one, and let the View do the layout for me. The documentation hints that this is possible, but actually getting it to work has been a real headache.
I am trying to use a NSTextAttachment, but every time I do, nothing appears on screen. Could someone who has done this successfully write out a trivial case example of adding an image, lets say a .jpeg from a file, to a NSTextView (or suggest a better display area)?
The documentation for all of this leaves a lot to be desired (and tends to point to other documents which point right back), and I have read all the documentation relevant (and a lot that is not relevant), and it has not enlightened me on how to do this.
Thank you much in advance!