Re: [swift-corelibs-dev] NSCoding methods

2015-12-25 Thread Philippe Hausler via swift-corelibs-dev
Likely we will have to change that signature to instead of being NSSet and Set respectively to be more compatible; however this will be an API change. It might be good to mock up a swift translation layer for these APIs to simulate what it would be like on Darwin if we altered these to be rename

Re: [swift-corelibs-dev] NSCoding methods

2015-12-25 Thread Luke Howard via swift-corelibs-dev
Looking at decodeObjectOfClasses/allowedClasses – what is the element type in the set of allowed classes? It seems like it should be AnyClass but that can’t be added to a Set because it doesn’t implement Hashable (nor to an NSSet because the initialiser unconditionally casts to NSObject). — Luk