I know C and C++. I am new to mac programming. I need examples of how to create libraries and call them using C++, etc. any sources, etc.?. Also, a simple app in cocoa would be useful.
Also important to note is that Xcode prefers .framework type libraries. A good example of a library in this format is Simple DirectMedia Layer (SDL for short). Apple offers plenty of example code on their developer pages to help newbies get started: http://developer.apple.com/Download Xcode.
Create a new project using a "Framework" or "Library" template to create a library.
Create a new project using the "Application / Cocoa application" template to create a Cocoa application.
Add the library to your Cocoa application, include the header files, and just call the library functions.
Also important to note is that Xcode prefers .framework type libraries. A good example of a library in this format is Simple DirectMedia Layer (SDL for short). Apple offers plenty of example code on their developer pages to help newbies get started: http://developer.apple.com/
Xcode does make adding .framework libraries particularly easy, though - hence the "preferred" comment. If my meaning was off, it wasn't intended.I wouldn't say it preferred them. It works perfectly well with normal everyday dynamic libraries and static libraries.
.. how to create libraries and call them using C++..