Is there a framework or other sample code for doing barcode recognition (create and scan) on cocoa [OS X]?
You have to use a third-party framework for that.
For example, you can use:
A simple Google search or StackOverflow search can help you too.
ZBar is for iOS right. I am looking for cocoa. Any sample application using ZXing in cocoa.
I'm hoping to add a clean and simple sample app for os x as well as new clean project files for zxing Real Soon Now. There are two sample apps (see the README in the objc directory) but they're far from ideal.
There is a Zbar Wrapper for OS X as well. Check it out here: github.com/srgtuszy/ZbarCocoa
None of these frameworks really work with the built-in camera of a standard 5K iMac