Re: [swift-users] swift-users Digest, Vol 6, Issue 28

2016-05-30 Thread John Myers via swift-users
Is there a way to format the text in the following link that appeared in today's digest? The code toward the bottom is all run together. I would edit to correct it if that were possible. Thanks! On Mon, May 30, 2016 at 12:00 PM,

[swift-users] Subclass doesn't inherit convenience initialiser

2016-05-30 Thread Michal Kalinowski via swift-users
Hello, I'm subclassing NSMutableURLRequest to patch lack of httpBody property. My subclass doesn't implement any initialisers so it inherits all the designated initialisers. From what I understand, since all designated initialisers are implemented(inherited) then I should also inherit

Re: [swift-users] Simple text file I/O with Swift 3 (Quinn "The Eskimo!")

2016-05-30 Thread Ken Burgett via swift-users
On 2016-05-30 10:00, swift-users-requ...@swift.org wrote: Send swift-users mailing list submissions to swift-users@swift.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.swift.org/mailman/listinfo/swift-users or, via email, send a message with subject

Re: [swift-users] swift-users Digest, Vol 6, Issue 28

2016-05-30 Thread Ken Burgett via swift-users
On 2016-05-30 10:00, swift-users-requ...@swift.org wrote: Send swift-users mailing list submissions to swift-users@swift.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.swift.org/mailman/listinfo/swift-users or, via email, send a message with subject

Re: [swift-users] Simple text file I/O with Swift 3

2016-05-30 Thread Quinn "The Eskimo!" via swift-users
On 28 May 2016, at 19:05, Ken Burgett via swift-users wrote: > print(buf) The trick here is to replace the above line with: print(String(validatingUTF8: buf)) `fgets` sets up `buf` to hold a C string, so you have to convert it to a Swift string. How do you do