Tonight I went back to the basics to better understand how things work together. The goal was to enter 2 numbers into 2 text fields. 1 number would go and be stored in an int value in firstObject and the second number would be stored in secondObject int value. Then when I press the Total button it retrieves the 2 integer values and displays the addition result. Simple, I thought.
I have not set up releases yet for the objects, just FYI. I am dealing with a scope problem it seems. I instantiate the objects in my -(void)awakeFromNib; but the code in the buttons can not see the objects instance variables that I instantiated.
I thought objects were global and methods could send messages to them regardless it's scope. I included the zip file.
Thanks
I have not set up releases yet for the objects, just FYI. I am dealing with a scope problem it seems. I instantiate the objects in my -(void)awakeFromNib; but the code in the buttons can not see the objects instance variables that I instantiated.
I thought objects were global and methods could send messages to them regardless it's scope. I included the zip file.
Thanks