El sáb, 09-04-2016 a las 08:53 -0400, umen escribió:
> Hi,
> Number1 is NSButton. result is the NSTextField. I assign string to
> number1 because with strings I can append other numbers and assign
> this new number to number1 again, then I use doubleValue to get a
> double from this string. It's
Hi,
Number1 is NSButton. result is the NSTextField. I assign string to number1
because with strings I can append other numbers and assign this new number to
number1 again, then I use doubleValue to get a double from this string. It's
exactly what else{} is doing at all button methods. Or there
Hi,
I have not clear what is "number1". But in method "-add" you assign a
string to this variable, so this become a string object. Then, later,
you call "-setDoubleValue:" at "number1" as if it was an NSTextField
object. If this is an NStextField object, then you should do (in method
"-add"):
Hi people, I'm trying to write a basic calculator using GNUstep+ObjC and I get
stucked. I really don't know where is the problem in my code. May you help me?
I'm sending here what I have implemented until now:
@interface UCalc : NSObject
{
char operation; //just a char to validate the