• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dealloc confusion for Class Cluster sub-classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Two-sided printing
  • Next by Date: Re: Two-sided printing
  • Previous by thread: Re: Two-sided printing
  • Next by thread: compiler Settings
  • Index(es):
    • Date
    • Thread