in Technology by (1.8m points)

What is toll-free bridging and when is it useful?

1 Answer

0 votes
by (1.8m points)

Toll-free bridging means that the data structures are interchangeable. It is just as simple as casting — that’s the “toll-free” part. Anyplace you can use the type on one side of the bridge, you can use the other. So, for example, you can create a CFString and then send NSString messages to it, or you can create an NSArray and pass the array to CFArray functions.