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 5/8/06 10:49 AM, Norio Ota didst favor us with:

> 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?

It depends on how you set it. If you read ControlDefinitions.h you find
this:

  kControlPopupButtonOwnedMenuRefTag = 'omrf' /* MenuRef*/

If you Google for "kControlPopupButtonOwnedMenuRefTag" the first hit is:

http://lists.apple.com/archives/Carbon-development/2001/Jun/msg01512.html

Read those headers. ;-)

Larry

 _______________________________________________
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.