ikscannerdeviceview

How to use IKScannerDeviceView in Cocoa

孤街浪徒 提交于 2020-12-29 07:21:07
问题 How can I use IKScannerDeviceView to scan a document inside of my app? I tried adding an IKScannerDeviceView into my view through IB and setting its delegate to my app delegate (which implements the IKScannerDeviceViewDelegate), but when I run the app I get a view with the buttons Show Details and Scan , and only Show Details is enabled and when I click it nothing happens. I have a scanner plugged in and I can scan through Image Capture, but not through my app. Does anybody have a good

IKScannerDeviceView is only working once

旧时模样 提交于 2019-12-11 08:07:05
问题 I have an app with a main window and a secondary window with an NSScannerDeviceView in it. The idea is to scan an image to memory and place it into an NSImageView in the main window. So far so good. When the scanner window is opened I can scan an image and it is placed correctly in to the NSImageView. The problem is this, I can scan again and again but if I close the scan window and re-open it the NSScannerDeviceView no longer works. I'm sure the solution is relatively simple but as I'm still