Im new to objective-c. I'm trying to make a calculator application. When I run this code:
-(void) addNums: (int)fnum: (int)snum {
ans = fnum + snum;
[result setStringValue:@"%i",ans];
}
to try and set the result label I get the error
"Too many arguments to method call, expected 1, have 2". I was expecting this to work the same way as NSLog
formatting.
Thanks for the help. Let me know if you need to see more of my code.