Hello, This code works when I test it.
I then tried to swap out to an NSMutableString 'valueAppender' for this next code I get a warning "Incompatible pointer types assigning to 'NSMutableString *' from 'NSString *'"
I understand the error message and I am looking through the Apple documentation in the methods to find a method for a NSMutableString. I thought about trying to assign the NSMutableString to a NSString and have the text field then display the string?
Thanks,
-Lars
Code:
NSString *tempString;
NSMutableString *valueAppender;
- (IBAction)ONE:(id)sender {
tempString = @"1";
[mathField setStringValue: tempString];
I then tried to swap out to an NSMutableString 'valueAppender' for this next code I get a warning "Incompatible pointer types assigning to 'NSMutableString *' from 'NSString *'"
Code:
- (IBAction)ONE:(id)sender {
valueAppender = @"1";
[mathField setStringValue: valueAppender];
}
I understand the error message and I am looking through the Apple documentation in the methods to find a method for a NSMutableString. I thought about trying to assign the NSMutableString to a NSString and have the text field then display the string?
Thanks,
-Lars