How to override super variable? #69
-
For example: class SplistView: NSSplitView {
override var dividerThickness: CGFloat {
return 0
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you just set it in some initialization code? |
Beta Was this translation helpful? Give feedback.
-
Based on the Objective-C documentation (which is what you should use when working with MacDriver): This is a property, which are just declaring getter and/or setter methods. You would be able to override this implementing a "dividerThickness" method on a subclass. |
Beta Was this translation helpful? Give feedback.
Based on the Objective-C documentation (which is what you should use when working with MacDriver):
https://developer.apple.com/documentation/appkit/nssplitview/1455257-dividerthickness?language=objc
This is a property, which are just declaring getter and/or setter methods. You would be able to override this implementing a "dividerThickness" method on a subclass.