Download3k has downloaded and tested version 15.1.3 of Barcode Creator Software Barcode Studio for Mac on 10 Nov 2015 using only the best antivirus engines available Today. Barcode Creator Software Barcode Studio for Mac 12.0.0 BARCODE MAKER / BARCODE CREATOR With Barcode Studio you generate high-quality bar code images (also for 2D codes like QRCode or DataMatrix) ideally suited for pre-press requirements, desktop publishing applications, print-shops and artwork studios.
- Comprar $115
- Download3k US (BarCode-Studio-MacOSX.zip)
- Download3k EU (BarCode-Studio-MacOSX.zip)
- Vínculos de Descarga 1 (BarCode-Studio-MacOSX.zip)
Have you implemented any barcode reader software in Swift on Mac OS X? Since Dynamsoft released the 1D/2D barcode SDK for Mac, I was wondering how I can bridge the C dylib with Swift. Why Swift, not Objective-C? Because Apple is encouraging developers to migrate to the new programming language, it is important to master the new tool if you want to create more excellent apps for Mac and iOS in the future. Swift is totally new to me, and thus I spent two days googling relevant resources and finally figured out the solution.
Prerequisites
Download Fl Studio For Mac
Using Swift with C
It is recommended to read the e-book – Using Swift with Cocoa and Objective-C – published by Apple in iBooks. To quickly get familiar with how to make Swift work with C language types and features, we can pick the chapter Interacting with C APIs. You may use the following primitive type mapping and pointer mapping when interoperating Swift and C.
Implementing 1D/2D Barcode Reader with Swift and C on Mac
Open Xcode, and then press Command+Shift+N to create a new project. I will demo both command line tool and Cocoa application.
After initializing the new project, we need to import all relevant header files and libraries to the project. The quickest way is to use your mouse to drag header files and libraries to your project. Xcode will automatically add them to project configuration files.
Photo Studio For Mac
Press Command+N to add a C file, which will be used to invoke Dynamsoft Barcode dylib.
Once it’s done, you will see an alert dialog as follows:
If press Yes, Xcode will automatically generate an Objective-C bridging header file. I had created native_lib.c and native_lib.h, so I opened the bridging header file and add the following line:
Barcode Pro For Mac
Referring to the online sample of Dynamsoft Barcode SDK, we can make a few changes:
As for the corresponding header file, add the following code:
Command Line Tool in Swift
When writing Swift code, I need to convert Swift String to Char* in order to pass image path.
I found someone answered how to convert NSString to Char* with the commented line on StackOverflow. The method bridgeToObjectiveC was supported in earlier Xcode 6.x but has been removed in Xcode 6.4.
Get the barcode results:
Cocoa Application in Swift
Create buttons and text fields in AppDelegate.swift:
Create a function to receive click event:
In interface builder, connect outlets to UI elements.
Using NSOpenPanel to load files:
Create DBR.swift for reading barcode images:
Run the 1D/2D barcode reader with GUI: