Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who releases a MenuRef of a popup menu control?



On May 8, 2006, at 10:49 AM, Norio Ota wrote:

I am about to attach a menu reference created programmatically to a popup control.
Is the menu reference freed when the control is disposed? Or do I have to release it by myself?

The popup control will release the MenuRef when it is destroyed, however I think it might also retain the MenuRef when it is set (I don't recall if this is the case, you can check this easily enough for yourself).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Who releases a MenuRef of a popup menu control? (From: Norio Ota <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.