I need to take the contents of an NSView and put them in an NSImage, for an experimental project. Is this possible? I did some Googling, tried two
NSView
NSImage
let dataOfView = view.dataWithPDFInsideRect(view.bounds) let imageOfView = NSImage(data: dataOfView)