What have you tried?
Please answer that question. Describe exactly what you tried, in order to find information on this subject. If you didn't try anything, then say that.
I tried this:
1. Select the title of your thread:
how create or generate barcode in cocoa
2. Control-click it. A contextual menu appears.
3. Choose "Search in Google".
4. Look at the first page of results.
5. On that page is a link to this:
http://code.google.com/p/cocoa-touch-barcodes/
For more results, do the search yourself.
If you don't find anything useful, post again, describing exactly what you searched for. (This means you should take notes of what you search for, so you can tell us later what you did.)
You should also spend some time reading
barcode articles on Wikipedia, so you can tell us exactly which barcode scheme you want to use. (The barcode article I linked is not the only one. See the links at the end of that article.)
You need to do some searching and reading, so you can accurately describe what you're looking for. There are dozens, if not hundreds, of different barcodes, used for different purposes. If you don't tell us which one, or what you're trying to do, how can we possibly answer your question?