Re: [swift-corelibs-dev] non-inherited init

2016-03-20 Thread Philippe Hausler via swift-corelibs-dev
Actually partially related. The /*@NSCopying*/ comments are hints that we left when initially importing that the return value should be copied. It is again a export from it’s objc nature. In this case having a property with copy. e.g. @property (copy) NSData *data; exports as @NSCopying publ

Re: [swift-corelibs-dev] A question about @NSCopying

2016-03-20 Thread Philippe Hausler via swift-corelibs-dev
> On Mar 18, 2016, at 1:18 PM, Pushkar N Kulkarni via swift-corelibs-dev > wrote: > > I am trying to implement some of the methods and properties in NSOrderedSet. > > The read-only property "reversedOrderedSet" has the @NSCopying attribute > according to the NSOrderedSet class reference. >

Re: [swift-corelibs-dev] NSHTTPURLResponse.localizedStringForStatusCode()

2016-03-20 Thread Ian Partridge via swift-corelibs-dev
On 17 March 2016 at 19:31, Daniel Eggert wrote: > What code will be used to make then _localized_? Good question - I wondered if Obj-C foundation translated them based on the current locale, but it doesn't. They seem to be fixed strings. By the way, some more strangeness I spotted in the outpu

Re: [swift-corelibs-dev] NSHTTPURLResponse.localizedStringForStatusCode()

2016-03-20 Thread Philippe Hausler via swift-corelibs-dev
Well the interesting part here is that it is a localized string for a status code, so these should be a human readable output intended for display. If they were just stringForStatusCode then I would agree they should match the RFC, but since it is localized I think we shouldn’t try and reimpleme