Re: [swift-corelibs-dev] NSArray.descriptionWithLocale implementation

2016-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Eugene, Interesting question. I think we may have to introduce a default implementation of -descriptionWithLocale:indent: which calls -descriptionWithLocale:, which has a default implementation of calling -description. It may be the case that we then have to limit the behavior to subclasses

[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