Missing String.init(data:,encoding:)

6 views
Skip to first unread message

Jens Alfke

unread,
May 19, 2015, 2:15:19 PM5/19/15
to swift-l...@googlegroups.com
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?

—Jens

PS: Xcode 6.3.2
Reply all
Reply to author
Forward
0 new messages