PDA

View Full Version : Creating libraries in Objective-C/Cocoa




NewbieNerd
Nov 6, 2005, 01:08 AM
I'm pretty new to the Cocoa programming, and I am curious about what the different libraries are to create in XCode. Suppose I want to start a library project called X. If I choose dynamically linked library, it builds libX.dylib; if I choose static library, it builds libX.a; if I choose bundle, it builds libX.bundle. What are these things and what is the difference? Should I just create all seperate class files on my own and then tie them together via a single header file libX.h that just imports them? TEACH ME! :)



caveman_uk
Nov 6, 2005, 03:21 AM
What are you creating a library to do? If it's to be used by other Cocoa programs then IMO you're best off creating a framework. If you want to create a system library then my guess is you shouldn't being using cocoa at all- foundation maybe.