I created a Swift class that conforms to NSCoding. (Xcode 6 GM, Swift 1.0)
import Foundation private var nextNonce = 1000 class Command: NSCoding { le
Although Swift class works without inheritance, but in order to use NSCoding you must inherit from NSObject.
NSCoding
NSObject
class Command: NSObject, NSCoding { ... }
Too bad the compiler error is not very informative :(