davis@groucho.ucar.edu (Glenn P. Davis) (10/04/89)
Suppose I have an object with another object as instance variable: @interface myObject: Asuperclass { id anotherobject; . . } +new ; -free ; @end I want 'anotherobject' freed at free time. What should my free method look like? I guess: -free { [anotherobject free] ; [super free] ; } This doesn't fail outright, but I wonder if the [super free] is being applied to the current object. Thanks Glenn P. Davis davis@unidata.ucar.edu UCAR / Unidata PO Box 3000 1685 38th St. Boulder, CO 80307-3000 Boulder, CO 80301 (303) 497 8643
jacob@gore.com (Jacob Gore) (10/04/89)
/ comp.sys.next / davis@groucho.ucar.edu (Glenn P. Davis) / Oct 3, 1989 / > I want 'anotherobject' freed at free time. > What should my free method look like? - free { [anotherobject free]; self = [super free]; return self; } Jacob -- Jacob Gore Jacob@Gore.Com boulder!gore!jacob