2

I'm primarily a windows developer but I need to port an app to the mac platform. The app needs access to any scanners plugged into the computer. On windows, I've made use of the WIA library. I was wondering if the mac platform has an equivalent and also if it has bindings for the new Swift language?

Any help would be appreciated. Thanks.

AyushISM
  • 381
  • 7
  • 21

1 Answers1

3

You can access scanners and other devices using ImageKit + ImageCaptureCore. Some of Apple's documentation is very sparse, so you shouldn't be afraid to learn things from the header files (e.g. ICScannerDevice.h). It might help to look at some of the code I wrote for this application, particularly this file.

There is no such thing as "bindings" for Swift, since Swift currently uses the Objective-C runtime and interacts directly with Objective-C. This guide will help.

jtbandes
  • 115,675
  • 35
  • 233
  • 266