Some Code Improvements
This commit is contained in:
@@ -63,7 +63,10 @@
|
||||
MPParseError *error;
|
||||
NSDecimalNumber *result = [self.expressionView.expressionStorage evaluateWithError:&error];
|
||||
self.resultLabel.stringValue = result != nil ? result.description : @"Error!";
|
||||
self.errorLabel.stringValue = error != nil ? error.description : @"No Error";
|
||||
self.errorLabel.stringValue = error != nil ? [NSString stringWithFormat:@"%@, %@", error, error.pathToExpression] : @"No Error";
|
||||
if (error) {
|
||||
self.expressionView.error = error;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user