Skip navigation.
 
mlRe: toll free bridging
FROM : glenn andreas
DATE : Tue Dec 14 23:24:53 2004

On Dec 14, 2004, at 1:46 PM, Guy English wrote:
> On Tue, 14 Dec 2004 11:39:46 -0800, Ken Victor <<email_removed>>
> 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_removed> 
  <http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know

Related mailsAuthorDate
mltoll free bridging Ken Victor Dec 14, 20:39
mlRe: toll free bridging Guy English Dec 14, 20:46
mlRe: toll free bridging glenn andreas Dec 14, 23:24