Re: Must remove submenu when dealloccing NSMenuItem?
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