I have NSSplitView
with two IKImageView
on both sides to compare them with each other. I'm trying to implement Print functionality but images disappear on preview. (What should be printed vs What I get)
What I tried:
Based on docs, locking focus on splitView
and directly printing it with
[[NSPrintOperation printOperationWithView:view] runOperation];
But as long as docs state that
If UI contains multiple views that can have focus view-based printing doesn’t work well.
I tried making a "screenshot"(Method 1, Method 2) of the splitView
, creating new viewController
with single NSImageView
, displaying my screenshot there and then printing imageView. But images weren't visible even in screenshot neither.
Important thing is that printing works just fine if I use NSImageViews
instead of IKImageViews
.
What else can I try?(Both objective-c
and swift
solutions would work)