mcgredo@prism.cs.orst.edu (Don McGregor) (03/27/91)
Can someone point me to some example code that uses hash tables?
I'm trying to do something with them, and dumping core is the
only result so far. The code frag I'm trying is:
+new
{
//create a new hash table object for holding attribute name/value.
self = [super new];
[self initKeyDesc:"*" //ptr to string
valueDesc: "!" //ptr to a double
capacity: 0]; //initially zero, grows as needed.
return self;
}
This is in a subclass of HashTable.
Pointers would be great, example code would be bitchin too.
Oh, for a NeXT programming book!
Don McGregor | Outside of a dog, a book is a man's best friend.
mcgredo@prism.cs.orst.edu| Inside of a dog it's too dark to read.