dealloc confusion for Class Cluster sub-classes
dealloc confusion for Class Cluster sub-classes
- Subject: dealloc confusion for Class Cluster sub-classes
- From: Matt Gough <email@hidden>
- Date: Tue, 6 Jan 2004 13:37:43 +0000
I have a subclass of class cluster. This is implemented in the same way
as the ValidatingArray example in:
/Developer/Documentation/Cocoa/Conceptual/Foundation/Concepts/
ClassClusters.html
i.e it uses an embedded instance of the super-class.
What I don't understand is who is responsible for disposing of the
embedded object. I assumed that I should have a dealloc which releases
it, but that proved fatal. The ValidatingArray example doesn't define a
dealloc and my code work fine without it. But why doesn't this leak?
What am I missing?
Matt Gough
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.