Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: toll free bridging




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: toll free bridging (From: Guy English <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.