Re: toll free bridging
Re: toll free bridging
- Subject: Re: toll free bridging
- From: glenn andreas <email@hidden>
- Date: Tue, 14 Dec 2004 16:24:53 -0600
On Dec 14, 2004, at 1:46 PM, Guy English wrote:
On Tue, 14 Dec 2004 11:39:46 -0800, Ken Victor <email@hidden>
wrote:
i understand that since, eg, NSString and CFString are toll free
bridged
that i can use one or the other as needed (with appropriate casting)
in
cocoa and/or system calls. does this also apply to releasing the
objects as
well? ie, can i:
CFRelease( an NSString)
or
[<a CFString> release]
thanx,
ken
Yes.
With the caveat that if the NSString/CFString is NULL,
CFRelease(aString) will crash, while [aString release] does nothing.
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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