• 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: NSMenuItemCell setMenuItem does not retain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSMenuItemCell setMenuItem does not retain?
      • From: Steve Mills <email@hidden>
References: 
 >NSMenuItemCell setMenuItem does not retain? (From: Steve Mills <email@hidden>)

  • Prev by Date: NSMenuItemCell setMenuItem does not retain?
  • Next by Date: Re: NSMenuItemCell setMenuItem does not retain?
  • Previous by thread: NSMenuItemCell setMenuItem does not retain?
  • Next by thread: Re: NSMenuItemCell setMenuItem does not retain?
  • Index(es):
    • Date
    • Thread