Path: utzoo!attcan!uunet!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: <326.279EDE01@stjhmc.fidonet.org> Date: 22 Jan 91 18:17:54 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 31 Bassel Soudan writes in a message to All BS> I faced a similar situation where I had to remove all the objects BS> from a list without disposing of them. ( I had two lists sharing BS> some of their objects, and I wanted to remove the objects from BS> one list and still keep them in the other.) BS> What I ended up doing was write a RemoveAll method and add it BS> to the CList class. In this method I saved the number of objects BS> in a local variable and used that as my counter to remove the BS> first item in the list that many times. It works fine. ??? From the Think C manual, page 272: void Dispose(void); Dispose of a cluster, but not the items in it. ??? Am I missing something? Why not just use the CCluster method? Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org