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



On Mon, 29 Nov 2004 14:26:56 -0500, Laurence Harris <email@hidden> wrote:
> On 11/29/04 2:08 PM, Eric Gorr didst favor us with:
> 
> > At 2:01 PM -0500 11/29/04, Laurence Harris wrote:
> >> Under no circumstances should you release the string returned by CFSTR.
> >
> > You can if the CFRelease is balanced by a CFRetain.
> 
> True. In that case the string isn't released, the refcount is just
> decremented. I find it easiest to just think of CFSTR() as a CF "Get"
> function.
> 

<pedantic>
But it *is* released, it just isn't deallocated or destroyed. 
<http://developer.apple.com/documentation/CoreFoundation/Reference/CFTypeRef/Reference/FunctionGroupIndex.html#//apple_ref/doc/uid/20001203/F11071>
</pedantic>

-- 
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
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: 
 >Re: CFSTR (From: Laurence Harris <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.