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
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 mails | Author | Date |
|---|---|---|
| Ken Victor | Dec 14, 20:39 | |
| Guy English | Dec 14, 20:46 | |
| glenn andreas | Dec 14, 23:24 |






Cocoa mail archive

