Forum breadcrumbs - You are here:WeLoveGod RallysPublic Forums: fbcocoaQuestion on interchangeability of …
You need to log in to create posts and topics.
Question on interchangeability of CFString and NSString ( both core foundation )
1,678 Posts
#1 · February 18, 2010, 12:38 pm
Quote from Forum Archives on February 18, 2010, 12:38 pmPosted by: fblistserve <fblistserve@...>
Hi Guys,Apple docs tell us these are toll-free bridged, so where NSString is shown in a method call a CFString may be substituted and vice-versa. That I understand.My question is: Can a CF function ( using CFStringCreateWithFormat as a point of discussion - but could be any CF call ) be used successfully in Objective-C code ( or code that is compiled with the Cocoa framework - i.e. #import <Cocoa/Cocoa.h> ) instead of the NSString method ( in this case stringWithFormat: )?I'm hoping someone knows the answer without doing research ( because I can do that ). It seems that Cocoa often calls through to lower levels of Foundation code that are CF calls, so I thought CF calls might possibly be recognized ( and not reported as "undefined" by the compiler).TIA....Brian
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Posted by: fblistserve <fblistserve@...>
Hi Guys,
Apple docs tell us these are toll-free bridged, so where NSString is shown in a method call a CFString may be substituted and vice-versa. That I understand.
My question is: Can a CF function ( using CFStringCreateWithFormat as a point of discussion - but could be any CF call ) be used successfully in Objective-C code ( or code that is compiled with the Cocoa framework - i.e. #import <Cocoa/Cocoa.h> ) instead of the NSString method ( in this case stringWithFormat: )?
I'm hoping someone knows the answer without doing research ( because I can do that ). It seems that Cocoa often calls through to lower levels of Foundation code that are CF calls, so I thought CF calls might possibly be recognized ( and not reported as "undefined" by the compiler).
TIA....
Brian
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Click for thumbs down.0Click for thumbs up.0