I am subclassing NSOperation in Swift and need to override the isExecuting and isFinished properties since I am overriding the s
From the swift book:
You can present an inherited read-only property as a read-write property by providing both a getter and a setter in your subclass property override.
I think you'll find that this works:
override var executing : Bool {
get { return _executing }
set {
willChangeValueForKey("isExecuting")
_executing = newValue
didChangeValueForKey("isExecuting")
}
}
private var _executing : Bool