[swift-corelibs-dev] NSCoding methods
Luke Howard
lukeh at padl.com
Sat Dec 26 08:01:28 CST 2015
Another language thing I ran into ā using classForKeyedArchiver/classForCoder is impossible because declarations from extensions cannot be overridden yet.
For example Iād like to do:
internal class _NSCFString : NSMutableString {
ā¦
override var classForCoder: AnyClass {
return NSMutableString.self
}
}
There are a few ways I can work around it but perhaps we can put these extensions directly on NSObject for now?
ā Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20151227/ea26431a/attachment.html>
More information about the swift-corelibs-dev
mailing list