• 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: 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


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

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