Re: CFSTR
- Subject: Re: CFSTR
- From: Clark Cox <email@hidden>
- Date: Mon, 29 Nov 2004 15:49:22 -0500
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=G8NAApkg7UX+NuihjbqaitIKyLN0ehsE7K5iKtRsi3JDQEPmhCYRpvojh49cKcjnlwLS9nwNn/zEE84MhL3mFKUlXKUh+TiBxB9f5KiV4CQKgQbIJkR1R7wrrEq0RB6pOuf4sy8F03KqoKZ3OxhWBi9cx8cp9gBUKBfl1U6iK3o=
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
- Follow-Ups:
- Re: CFSTR
- From: Laurence Harris <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.