• 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
Sanity Check on Memory Leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sanity Check on Memory Leaks


  • Subject: Sanity Check on Memory Leaks
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 13 Feb 2007 07:46:10 -0800
  • Thread-topic: Sanity Check on Memory Leaks

I have subclassed NSMenu to make hierarchical contextual menus attached to
cells in NSOutlineViews, and in this subclass I have placed NSLog statements
in the -init and -dealloc methods.

As a hierarchical contextual menu is displayed and traversed, in the log I
see SubclassedNSMenu objects being initted.  After the mouse is released and
the menu disappears, I see that the top-level objects are deallocced, but
the deeper objects are not deallocced.  Even after the parent outline,
window and document are closed and deallocced, the deeper menu objects are
still not deallocced.

My conclusion is therefore that I have memory leaks or retain cycles that
are preventing the deeper ones from being deallocced, and that I should keep
looking until I find these problems.

Am I correct?

Thanks,

Jerry Krinock


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: double click between headers to autosize column ala iTunes?
  • Next by Date: Re: Core Data set predicate in IB [resolved]
  • Previous by thread: Re: Add nscontrol to the Main Window using code?
  • Next by thread: Application type
  • Index(es):
    • Date
    • Thread