[swift-corelibs-dev] NSURL.fileSystemRepresentation implementation

2016-01-04 Thread Eugene Gubin via swift-corelibs-dev
As far as I understand NSURL is responsible for deallocating memory to which UnsafePointer returned from NSURL.fileSystemRepresentation points to. Could one use private buffer to store result for NSURL.fileSystemRepresentation or layout of this class should be the same as CFURL? Also NSFileManager

[swift-corelibs-dev] NSArray.descriptionWithLocale implementation

2015-12-21 Thread Eugene Gubin via swift-corelibs-dev
Documentation says what it checks for item to respond to specific selectors. There are no selectors in Swift, so new implementation should check for protocol conformance instead, I guess. Any ideas? Should new protocol be introduced? Class reference: https://developer.apple.com/library/mac/documen