![]() Note that TwainSaneInterface is written entirely in C and C++, not Objective-C. Maybe port the TwainSaneInterface from using amework to using ImageCaptureCore directly? (It's unclear to me whether ImageCaptureCore is only for client applicaitons or if it's for drivers, as well.).Maybe create a wrapper for sane-backends using DriverKit, specifically USBDriverKit (though this would rule out sane-backends using parallel, SCSI, or any other non-USB interface)?.At the very least, port the existing TwainSaneInterface (and maybe SanePreferencePane) code to access sane-backends dynamically, and port it from amework to amework (or even SwiftUI).As best I can tell, approaches that might work for modernizing the TWAIN-SANE Interface are as follows: Regardless, Apple no longer provides any current references for creating scanner drivers in particular. amework (Depends on amework)Īdditionally, amework doesn't appear in Apple's current Developer documentation, but I checked on my Mac (running macOS 12.1), and /System/Library/Frameworks/amework is still there, so seemingly it's still current.amework (Yes, we knew this fourteen years ago.).Mattias Ellert's original code no longer compiles on current versions of macOS due to two prerequisite Apple libraries never making the jump to 64-bit: I have not updated any of the code to dynamically linking to the Homebrew version, though, because I'm not sure exactly what would be involved. The advantage with this approach is that the version you have installed will be completely up-to-date. Install Homebrew (if you haven't already): Rather than including an ancient version of the source code for sane-backends, I would encourage you to install the fully maintained Homebrew version using the following Terminal commands: 1. External RequirementsĪfter doing some further digging, I have simplified the contents of this repository to exclude the dependencies available through Homebrew. The contents of VirtualScanner are licensed under Apple's version of the MIT License. I have included it because does not seem to depend on amework, though it still does not compile (albeit for different reasons.). This is a sample project from Apple's Developer documentation archive. The contents of SanePreferencePane are licensed under the GPLv2./VirtualScanner I think this may just be due to how Preference Panes work.) Oddly, the compiled version of this did run correctly under macOS 11, even though the compiled TwainSaneInterface did not. (This package does not compile and has not been adapted to Homebrew-installed sane-backends. If you don’t install this package you can still configure the sane-backends using a text editor in the Terminal. This optional Preference Pane package from Mattias Ellert's project makes it easier to configure the sane-backends drivers. The contents of TwainSaneInterface are licensed under the GPLv2./SanePreferencePane (This package does not compile and has not been adapted to Homebrew-installed sane-backends.) It maps SANE's API to a TWAIN API and provides a graphical user interface for use within Apple Image Capture and macOS applications that use Image Capture as a scanner or camera interface. This package is the core of Mattias Ellert's project. This repository includes three subdirectories. Elsie Hupp ( September 2021 Repository Contents Please feel free to fork this repository as a base for working on it yourself, and please do tag me if you make any progress! I do not anticipate making progress on this project myself in the foreseeable future, as, among other things, I have very little experience with Cocoa and Objective-C, and learning macOS development is not a current focus for me. The contents of this repository do not currently compile. This repository aggregates the source code components available at /twain-sane for the purpose of setting up a Git workspace for the project of getting the TWAIN SANE Interface running in 64-bit for current versions of macOS. TWAIN-SANE Interface for macOS Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |