NSTextField is different from a UITextField. It doesn’t have a text property. It does however inherit from NSControl which has a stringValue property.
sumlab.stringValue = "\(result.sum)"
NSTextField is different from a UITextField. It doesn’t have a text property. It does however inherit from NSControl which has a stringValue property.
sumlab.stringValue = "\(result.sum)"