PDA

View Full Version : Objective C library?




Mac Player
Sep 1, 2007, 02:35 PM
Is there anything equivalent to the java API library in Objective-C?. CLasses for Sets, Trees, Maps, Stacks etc...?

TIA



Catfish_Man
Sep 1, 2007, 04:51 PM
Is there anything equivalent to the java API library in Objective-C?. CLasses for Sets, Trees, Maps, Stacks etc...?

TIA

NSSet, NSDictionary, etc...

Soulstorm
Sep 1, 2007, 05:47 PM
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
Sep 1, 2007, 06:30 PM
Thanks ive been checking the reference and Lists, Stacks and Queues are not implemented right?

kainjow
Sep 2, 2007, 12:17 PM
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 (http://www.cocoadev.com/index.pl?CFTree). There are some public Cocoa wrappers around this.

x704
Sep 3, 2007, 06:58 PM
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)