Re: Efficient hierarchical menu from path?
Re: Efficient hierarchical menu from path?
- Subject: Re: Efficient hierarchical menu from path?
- From: John Stiles <email@hidden>
- Date: Fri, 14 Dec 2007 13:59:23 -0800
Jerry Krinock wrote:
and also be aware that there is a bug in Tiger/Panther: Submenus are
leaked, which causes a hell of a mess including long pizza wheels and
mysterious crashes when they send messages to other deallocced
objects. I worked around this in my subclass of NSMenu, in -dealloc,
by looping through all NSMenuItems in -itemArray and sending each a
setSubmenu:nil.
Thanks for the info; this tidbit will undoubtedly save me some
leak-tracking time later ;)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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