• 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 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


References: 
 >Re: 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: Core Data bound to NSPopUpButton
  • Previous by thread: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by thread: Re: Must remove submenu when dealloccing NSMenuItem?
  • Index(es):
    • Date
    • Thread