Re: Must remove submenu when dealloccing NSMenuItem?
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 20:18:21 -0500
On Feb 22, 2007, at 8:15 PM, Andy Lee wrote:
Jerry, I took a quick look and the code seems to support your
conclusion -- that when NSMenus are constructed using the lazy
delegate mechanism, something is being over-retained. I think the
"something" is more likely the NSMenuItems that are added to the
submenus, since the difference is that in the non-lazy case *we*
instantiate the menu item and in the lazy case Apple does. I can
easily imagine an accidental extra retain on Apple's part.
Or, even more easily, they instantiated the NSMenuItem with alloc/
init and failed to release after adding it to the menu.
--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