Re: CFStringRef == NSString* ?
Re: CFStringRef == NSString* ?
- Subject: Re: CFStringRef == NSString* ?
- From: Larry Fransson <email@hidden>
- Date: Wed, 21 Apr 2004 15:03:31 -0700
On Apr 21, 2004, at 13:22, Mark Alldritt wrote:
The question
is this: are the CoreFoundation types (CFStringRef, CFArrayRef, etc.)
equal
to corresponding FoundationKit types (NSString*, NSArray*, etc.)?
If this is true, then I can safely cast my CFStringRef to a NSString*
and
pass it along to the Objective-C/Cocoa portions of my application.
See
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSString.html for information on toll-free
bridging between CoreFoundation and Cocoa strings. (The short answer
is, "Yes, you can do that.") There is a link in that document that
will take you to more information about toll-free bridging in general.
Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.