Missing String.init(data:,encoding:)

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Missing String.init(data:,encoding:)

Jens Alfke
I’ve noticed that -[NSString initWithData:encoding:] (which I use constantly) isn’t made available through the String class, which seems inconsistent, since I can access both -initWithBytes:encoding: and -dataUsingEncoding: through String:

        String.init(bytes:, encoding:) // exists
        String.dataUsingEncoding( ) // no prob
        NSString.init(data:, encoding:) // mais oui
        String.init(data:, encoding:) // nope!

Known issue?


PS: Xcode 6.3.2

You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/D9F18776-3BF7-4FBB-957A-80FFE2CFC82B%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.