Thursday, October 23, 2008

Cocoa Barcodes

The Cocoa Barcodes project (formerly Barcode Generator) is now available at:

http://code.google.com/p/cocoabarcodes/

Cocoa Barcodes is a set of classes (and a test application) for generating two-dimensional barcodes. It supports many of the more common one-dimensional linear barcodes in use today, allows you to export a barcode as a TIFF, EPS, or PDF image, to copy the barcode image to the pasteboard, or to drag it to any other application that accepts standard OS X PDF data from the pasteboard, including TextEdit?. You can also print barcodes directly to any supported printer. Please note that you may not be able to create readable barcodes at all bar widths allowed by a specification. For example, Code 3 of 9 allows a bar width of as small as 7.5 mils, but I haven't had much luck going smaller than 13 mils on ink jet printers.

You have a fair amount of control over the final appearance of the barcode, including the bar width (in 1/10 mil increments), bar height, font size, and captioning. The following barcode types are supported:

  • Code 3 of 9

  • Extended Code 3 of 9

  • Code 128

  • Interleaved 2 of 5

  • Industrial 2 of 5

  • Codabar

  • PostNet

  • Modified Plessey

  • Modified Plessey (hexadecimal)

  • UPC-A

  • UPC-E

  • EAN-13

  • EAN-8

  • Royal Mail Barcode (also known as RM4SCC or CBC)

  • Planet Barcode

  • Japan Post Barcode


Cocoa Barcodes is based on Barcode Generator, an open source Mac program which began its life as a test scaffold for a set of Cocoa classes I was writing. I did not initially intend to release it as a standalone program, but by the time I was done testing the code, it had the lion's share of the features available on other OS X barcode programs at the time so I decided to release it.

I intend to add iPhone support at some point, but currently, drawing the barcodes is accomplished using categories on NSView and NSImage, neither of which are available on the iPhone.



7 comments:

Chintan Patel said...

Hey,

Can i know when do you intend to release the iphone version of barcode generator?


Also tell me if you have dropped the idea of an iphone port. Cant it be done without using categories?

Audrey et JJ said...

Bonjour,
je voudrais generer un code barre 1 D sur l'iphone ? est-ce possible ?

Hello, i would like to encode a 1D barecode on Iphone ? is it possible ?

It's very difficult to find information about "barecode generator" for Iphone :-(

thanks all lot

marthub said...

Skylark Sales Corporation is a leading supplier of Labeling Equipment, Industrial Labels, Printed Labels, Barcode Labels, Food Labels, Security Labels, Packaging Labels, Product Labels, Holograms, Adhesive Tapes etc. In business since 1997, we have the experience necessary to help you with all of your marking and labeling needs.
Barcode Printer

Prageeth said...

Does not compile on Snow Leopard.

Error:
Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.

DannyBoy said...

Hi!

Is it possible to download the whole project at once? In google code I could only grab one file at a time...
Thanks!

JeansPilot said...

JeansPilot offers the chance to buy a large variety of men’s and women’s jeans clothing from the world famous Italian Brands.
Online jeans clothing store looks for original fashion clothing sales and clearances of worldwide known designers. We participate in fashion auctions to get the lowest possible price for Top quality Clothes, Shoes and Accessories.
Buy Jeans

h4ns said...

What youre saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.

Arsenal vs Huddersfield Town live streaming
Arsenal vs Huddersfield Town live streaming
Wolverhampton Wanderers vs Stoke City Live Streaming
Wolverhampton Wanderers vs Stoke City Live Streaming
Notts County vs Manchester City Live Streaming
Notts County vs Manchester City Live Streaming
Bologna vs AS Roma Live Streaming
Bologna vs AS Roma Live Streaming
Juventus vs Udinese Live Streaming
Juventus vs Udinese Live Streaming
Napoli vs Sampdoria Live Streaming
Napoli vs Sampdoria Live Streaming
Fulham vs Tottenham Hotspur Live Streaming
Fulham vs Tottenham Hotspur Live Streaming
AS Monaco vs Marseille Live Streaming
AS Monaco vs Marseille Live Streaming
Alajuelense vs Perez Zeledon Live Streaming
Alajuelense vs Perez Zeledon Live Streaming
Technology News | News Today | Live Streaming TV Channels