ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Oct/Quick-question-on-free-method.

This is Quick-question-on-free-method. in view mode; [Up]


Date: Sun 03-Oct-1989 17:08:53 From: Unknown Subject: Quick question on 'free' method. 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 >From: jacob@gore.com (Jacob Gore)
Date: Sun 03-Oct-1989 18:48:19 From: Unknown Subject: Re: Quick question on 'free' method. / 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

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.