I am currently rewiring a scanner application which I originally wrote some years ago using the TWAIN driver directly into the more modern ImageKit IKScannerDeviceView . I thought that I could customize it enough to meet my needs without having to build it using ImageCaptureCore framework with extremely limited docs. I am gathering most of my info from the headers which is not to poorly documented but still limited. Before I abandon the convenience of IKScannerDeviceView, I want to confirm some troubles I am having with it to be sure that I am not missing some undocumented methods or workaround. I have been googling for days through this process but have turned up empty.
The goal of my app is to have a scan (or multiple scans) go into memory and converted to a multi PDF document by my controller class. Limited UI settings needed. 1. Memory Mode. Setting up purely in IB using an IKDeviceBrowserView to discover the scanner(s) and setting IKScannerDeviceView as it's delegate works well. However, setting the transferMode to memory in IB does not work. Basically what I end up with is the Image capture app (file mode only). I have tried setting my controller as the delegate and handling the IKDeviceBrowserView delegate - (void)deviceBrowserView:(IKDeviceBrowserView *)deviceBrowserView selectionDidChange:(ICDevice *)device Here I set the transferMode manually and it works. However if I change the functionalUnit on the scanner using the standard IKScannerDeviceView (ie from flat bed to document feeder) I am back to file mode permanently. I am not sure why this is happening as from what I can tell from the headers the functional unit change simple makes multiple (1 per page or image in doc feeder mode) calls to IKScannerDeviceView delegate - (void)scannerDeviceView:(IKScannerDeviceView *)scannerDeviceView didScanToURL:(NSURL *)url fileData:(NSData *)data error:(NSError *)error. There seems to be no other place to set the transferMode that would affect this. I have tried various other customizations in IKDeviceBrowser delegate method and they work as well as survive the functionalUnit change. 2. UI elements. In IB I am able to choose between Simple and Advance modes, Post processing and various UI other options. Setting them in IB works. However, the checkbox for "select separate items" is the only UI item that is not able to be set or removed. I find this odd as It is the only element that is not an option in IB or documented in the headers. Are these Bugs in IKScannerView IB or am I just missing something? Thanks Tom_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com