Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: RE: removing objects from THINK CList class Message-ID: <158.279C43D8@stjhmc.fidonet.org> Date: 21 Jan 91 16:01:25 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 22 a_dent@fennel.cc.uwa.oz.au writes in a message to All A> One of my classes deletes objects from a CList by (more or less) A> while ((myObject = myList->FirstItem()) != NULL) { myList->Remove(myObject); myObject->Dispose(); } Question: the above removes all objects, no? Why not just use myList->DisposeItems(); ??? Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org