• 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: Jerry Krinock <email@hidden>
  • Date: Thu, 22 Feb 2007 05:30:23 -0800
  • Thread-topic: Must remove submenu when dealloccing NSMenuItem?

on 07/02/21 22:11, stephen joseph butler at email@hidden wrote:

> -[NSMenu init] is not the designated initializer for NSMenu. -[NSMenu
> initWithTitle:] is.

Thanks Stephen, you're correct.  (This is why I like to post a lot of code!)

However, after I fixed that mistake and carefully repeated my experiments,
my results and conclusion are still the same:  Unless I use my workaround
-removeSubmenusFromAllItems, the inner nested menus do not get deallocced.

Anyone else like to look at that lot of code ?

Jerry


_______________________________________________

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: "stephen joseph butler" <email@hidden>)

  • Prev by Date: Re: Core Data OpenGL
  • Next by Date: Key value observer set up in IB not removed
  • Previous by thread: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by thread: Re: Must remove submenu when dealloccing NSMenuItem?
  • Index(es):
    • Date
    • Thread