Re: how to create a NSMenuItem without memory leaks
Re: how to create a NSMenuItem without memory leaks
- Subject: Re: how to create a NSMenuItem without memory leaks
- From: Greg Parker <email@hidden>
- Date: Mon, 16 May 2011 19:26:13 -0700
On May 16, 2011, at 7:15 PM, Nick Zitzmann wrote:
> On May 16, 2011, at 8:05 PM, Greg Parker wrote:
>>
>> Don't bother. The menu zone is gone as of Snow Leopard. -setMenuZone: does nothing, and -menuZone always returns the default malloc zone.
>
> Really? Good to know. I filed bug #9450065 on this issue.
Good idea; IMO +menuZone should be deprecated. For what it's worth, NSMenu.h says this:
/* Returns the zone used to allocate NSMenu objects. This is left in for compatibility and always returns NSDefaultMallocZone(). It is not necessary to use this - menus can be allocated the usual way. */
+ (NSZone *)menuZone;
--
Greg Parker email@hidden email@hidden Runtime Wrangler
_______________________________________________
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