Re: NSMenuItemCell setMenuItem does not retain?
Re: NSMenuItemCell setMenuItem does not retain?
- Subject: Re: NSMenuItemCell setMenuItem does not retain?
- From: Uli Kusterer <email@hidden>
- Date: Fri, 02 Aug 2013 16:16:54 +0200
On Aug 2, 2013, at 3:01 PM, Steve Mills <email@hidden> wrote:
> Is setMenuItem supposed to retain the item? We have some code written quite a while ago that looks like:
The menu item owns the cell, so I doubt the cell retains the menu item, as you'd get a retain circle.
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.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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