Re: NSMenuItemCell setMenuItem does not retain?
Re: NSMenuItemCell setMenuItem does not retain?
- Subject: Re: NSMenuItemCell setMenuItem does not retain?
- From: Steve Mills <email@hidden>
- Date: Fri, 02 Aug 2013 09:36:48 -0500
On Aug 2, 2013, at 09:16:54, Uli Kusterer <email@hidden>
wrote:
> The menu item owns the cell, so I doubt the cell retains the menu item, as you'd get a retain circle.
Are you sure about that? I don't see any methods that mention the cell in NSMenuItem.
> Also, I thought NSMenuItemCell had been deprecated ages ago, but looking at the headers I only see NSMenuView being removed for 64 bit. It *does* have the note: "Note: NSMenuItemCell is no longer used to draw menus. Using it will not affect the appearance of your menus." in Apple's docs.
Oh, it's actually an NSPopUpButtonCell, which is based on NSMenuItemCell. I don't see anything in the docs about not using one of those.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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