• 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
Re: Must remove submenu when dealloccing NSMenuItem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Must remove submenu when dealloccing NSMenuItem?


  • Subject: Re: Must remove submenu when dealloccing NSMenuItem?
  • From: Andy Lee <email@hidden>
  • Date: Thu, 22 Feb 2007 10:24:19 -0500

On Feb 21, 2007, at 10:03 PM, Jerry Krinock wrote:
CONCLUSION: I think this indicates a leak in Apple's implementation of
NSMenuItem; possibly that they retain the _submenu as an instance variable,
but don't set it to nil during -dealloc. Either that, or they've got a
retain cycle.

P.P.S. It isn't whether the instance variable gets set to nil during -dealloc, it's whether it's released. I know *you* know that -- just pointing it out for the archives and to be a nitpicker. :)


Okay, really off to work now...

--Andy


_______________________________________________

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


References: 
 >Must remove submenu when dealloccing NSMenuItem? (From: Jerry Krinock <email@hidden>)
 >Re: Must remove submenu when dealloccing NSMenuItem? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by Date: RE: Core Data OpenGL
  • Previous by thread: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by thread: Bezier Text Container
  • Index(es):
    • Date
    • Thread