With Barcode Studio you create and print all 1D, GS1, 2D Barcodes in perfect quality - even in batch operation! More than 100 barcode symbologies are generated, printed or saved as EPS and images files: Code128, EAN, UPC, GTIN, DataMatrix, QRCode. Barcode Studio For Mac Publisher's description. With Barcode Studio you quickly create high-quality bar code images for pre-press requirements. With Barcode Studio you quickly create high-quality bar code images for pre-press requirements and desktop publishing applications within minutes. Barcode Studio is a fast and convenient way of generating high-quality barcode images (e.g. Bitmap or vector format for pressprint) without programming. Ready-to-use barcode templates support the creation of standardized barcodes.
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
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.
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:
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:
Source Code
Advertisement |
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.
License | Demo | Date Added | 01/23/2012 |
Price | USD $115.00 | Category | |
Filesize | 12.9 MB | Author | TEC-IT Datenverarbeitung GmbH |
Barcode Generator For Mac Free Download
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. Barcode Studio is featuring simple barcode label printing functionality. OUTPUT FORMAT Barcode Studio exports barcode images as BMP, PNG, GIF, JPG and TIFF. In addition this barcode maker creates vector-EPS (Encapsulated PostScript) and PDF output. BARCODE QUALITY Barcode Studio guarantees perfect barcode quality.The expected barcode quality is computed and displayed during the barcode design. BARCODE SUPPORT More than 100 different barcode symbologies are supported. Beside linear bar-codes the product also creates 2D barcodes, stacked codes and composite barcodes like GS1 DataBar. READY-TO-USE TEMPLATES Pre-defined templates for compliance bar-coding (Deutsche Post Premiumadress, EAN, UPC) are included. SPECIAL FEATURES Barcode Studio offers many convenient features, just to name a few: data import, serial number generator, input assistant with URL shortening (goo.gl, bitly) and SPARQCodes support, and more. HIGHLIGHTS + Fonts: No Barcode Fonts are required + Supported Barcodes: PDF417, MicroPDF, DataMatrix (ECC200), MaxiCode, QR-Code, Codablock, EAN-UCC-Composite, RSS, GS1 DataBar, Aztec, Code39, HIBC Codes, EAN, UPC, Code128 etc. + Data Import: Create bar code series with external data (text or CSV files) + Output Format: Direct printing, raster and vector image export, PostScript, PCL, EPS + Barcode Quality: The quality of the bar-codes is constantly computed + Data Input Assistant: Simplifies the creation of barcodes for mobile tagging like events, Twitter tweets, Facebook likes, vCard/meCard business cards etc. + Barcode Label Printing: Choose from pre-defined templates or define custom labels + Areas of Application: Pre-Press, Desktop Publishing, Barcode Testing, Coupons, Vouchers
Best Barcode Generator For Mac
Platform:Mac OS X, Mac PPC, Mac OS X 10.5, Mac OS X 10.4
System Requirements: There is no specific requirements