Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mac Player

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

TIA
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
Is there anything equivalent to the java API library in Objective-C?. CLasses for Sets, Trees, Maps, Stacks etc...?

TIA

The entire Foundation Framework is what you are looking for. As for trees, you can look into NSTreeController.
 

Mac Player

macrumors regular
Original poster
Jan 19, 2006
225
0
Thanks ive been checking the reference and Lists, Stacks and Queues are not implemented right?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Thanks ive been checking the reference and Lists, Stacks and Queues are not implemented right?

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.
 

x704

macrumors regular
Apr 15, 2006
118
0
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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.