1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Creating libraries in Objective-C/Cocoa

Discussion in 'Mac Programming' started by NewbieNerd, Nov 5, 2005.

  1. macrumors 6502a

    NewbieNerd

    #1
    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! :)
     
  2. Guest

    caveman_uk

    #2
    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.
     

Share This Page