Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ogicse!usenet!prism!mcgredo From: mcgredo@prism.cs.orst.edu (Don McGregor) Newsgroups: comp.sys.next Subject: Hash Table questions Message-ID: <1991Mar27.061141.6246@lynx.CS.ORST.EDU> Date: 27 Mar 91 06:11:41 GMT Sender: @lynx.CS.ORST.EDU Reply-To: mcgredo@prism.CS.ORST.EDU (Don McGregor) Distribution: usa Organization: YoyoDyne Propulsion Systems Lines: 25 Nntp-Posting-Host: prism.cs.orst.edu 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.