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: CGShadingCreateAxial retains CGFunctionRef?




On Jun 15, 2005, at 8:34 AM, Tom Butterworth wrote:

Thanks for the quick response - but...
I'm really wondering if the retaining (or not) is guaranteed by CGShadingCreateAxial and so won't break in future (or earlier) versions of Quartz, or if the behaviour is undefined, in which case I'll retain it myself. As it's not mentioned in the documentation, I guess I should consider it undefined...just hoped somebody might have read something more specific elsewhere that I had missed.

As a general rule, when you pass an object to a Core Foundation routine (or an object like CGShading which obeys Core Foundation syntax) it should be the case that if the routine needs to keep the object around, it will retain it. Basically... you should feel free to release the object when you get back from the routine.

If you're looking for actual documentation of this fact, you should probably look in the Core Foundation documentation, not the Core Graphics documentation.

Scott

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

This email sent to email@hidden

References: 
 >CGShadingCreateAxial retains CGFunctionRef? (From: Tom Butterworth <email@hidden>)
 >Re: CGShadingCreateAxial retains CGFunctionRef? (From: "Steve Mills" <email@hidden>)
 >Re: CGShadingCreateAxial retains CGFunctionRef? (From: Tom Butterworth <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.