Re: retain/release question about Apple docs
Re: retain/release question about Apple docs
- Subject: Re: retain/release question about Apple docs
- From: Volker Runkel <email@hidden>
- Date: Mon, 6 Mar 2006 10:32:00 +0100
Hi James,
the string newValue has to be released since it was retained before
creating a copy to mString .
The usual procedure would be :
if (mString != newValue) {
// don't retain here [newValue retain];
if (mString) [mString release];
mString = [newValue copy];
// so don't release here [newValue release];
}
Volker
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden