• 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: "stephen joseph butler" <email@hidden>
  • Date: Thu, 22 Feb 2007 00:11:07 -0600

2007/2/21, Jerry Krinock <email@hidden>:
on 07/02/21 20:34, stephen joseph butler at email@hidden wrote:

> Can you post some code for how you create these submenus?

Surely.  Here you go!!

If anyone's interested, there's a lot more where this came from :)

That's a lot of code! :) I'm hardly a menu expert, and I haven't looked at all your code, but...

- (id)initWithOwningMenuItem:(id)owningMenuItem {
    self = [super init];
    if (self != nil) {
        [self setOwningMenuItem_Weakly:owningMenuItem] ;
    }
    return self;
}

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

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


  • Follow-Ups:
    • Re: Must remove submenu when dealloccing NSMenuItem?
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: Must remove submenu when dealloccing NSMenuItem? (From: "stephen joseph butler" <email@hidden>)
 >Re: Must remove submenu when dealloccing NSMenuItem? (From: Jerry Krinock <email@hidden>)

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