Objective C library?

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

  1. macrumors regular

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

    TIA
     
  2. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    NSSet, NSDictionary, etc...
     
  3. macrumors 68000

    Soulstorm

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

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

    kainjow

    Joined:
    Jun 15, 2000
    #5
    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

    x704

    Joined:
    Apr 15, 2006
    #6
    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