Objective C library?

Discussion in 'Mac Programming' started by Mac Player, Sep 1, 2007.

  1. macrumors regular

    Jan 19, 2006
    Is there anything equivalent to the java API library in Objective-C?. CLasses for Sets, Trees, Maps, Stacks etc...?

  2. macrumors 68030


    Sep 13, 2001
    Portland, OR
    NSSet, NSDictionary, etc...
  3. macrumors 68000


    Feb 1, 2005
    The entire Foundation Framework is what you are looking for. As for trees, you can look into NSTreeController.
  4. thread starter macrumors regular

    Jan 19, 2006
    Thanks ive been checking the reference and Lists, Stacks and Queues are not implemented right?
  5. Moderator emeritus


    Jun 15, 2000
    Check out NSArray/NSMutableArray

    There is no stack or queue, but that would be very easy to create based off NSMutableArray.

    There is no Objective-C tree class, but check out CFTree. There are some public Cocoa wrappers around this.
  6. macrumors regular


    Apr 15, 2006
    Correction, there is no standard library for strictly the Objective-C language except what comes with C. Objective-C by its self (unlike C++) is a very very thin runtime built on the C language. Apple basically has their own "standard" library built with the OS that everybody uses (the NS* stuff).

    You only need to worry about this if you want to compile the program for other *nix (Linux, BSD, solaris...) based OSs. If you do then you should look at GNUstep or SideStep for libraries on the *nix platforms.

    (nobody cares about windows, so I won't even mention it)

Share This Page