[swift-users] How to bridge between CoreFoundation and SwiftFoundation on Linux?

Jens Alfke jens at mooseyard.com
Wed Sep 21 14:22:47 CDT 2016


> On Sep 20, 2016, at 9:38 PM, Bouke Haarsma via swift-users <swift-users at swift.org> wrote:
> 
> When working with CoreFoundation objects (e.g. CFReadStream, CFWriteStream) it isn't immediately obvious to me how to bridge them to SwiftFoundation counterparts (InputStream / OutputStream).
> 
> The following works on OSX, but doesn't work on Linux;

What implementation of CF are you using on Linux? OpenStep?

The bridging between Swift and Obj-C Foundation classes is only implemented on Apple platforms. It’s not part of the open source release. The plan is to implement classes like InputStream in native Swift as part of the standard library; that work is in progress.

—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160921/65302023/attachment.html>


More information about the swift-users mailing list