Toll-free bridging
Toll-free bridging
- Subject: Toll-free bridging
- From: Tommy Knowlton <email@hidden>
- Date: Wed, 17 Apr 2002 17:44:45 -0600
Can someone tell me, does toll-free bridging imply the safety of the
following operation:
NSLog([(NSString *)CFXMLParserCopyErrorDescription(parser) autorelease]);
Also, perhaps more importantly: are the semantics of the indicated operation
both defined and intuitive? In other words, am I safe to use toll-free
bridging to make a shorthand for the bulkier equivalent:
CFStringRef sr;
CFShow(sr = CFXMLParserCopyErrorDescription(parser));
CFRelease(sr);
I'm not altogether sure that NSLog and CFShow target the same file
descriptor, but that's not really the point, to my mind: I'd also like to be
able to use the autorelease shorthand in other situations involving
toll-free bridged types.
--Tk!
_______________________________________________
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.