Well, it's Mother's Day and I was very attentive to the wife and kids. So attentive that I did not do as much as I wanted to do in the Objective C book. Had a great day though and got some other things around the house accomplished too. As for Objective-C, I ended the day on page 105 which means I did around 10 pages or so. But I wanted to do more so maybe tomorrow I will compensate.
Anyway, learning about if, switch and conditional statements. Only gotten up to if so far. Had problem running Program 2 as the second instance of fraction seemed to retain the first instance's values. Had to do the setting to zero in code. I think the problem has to do with the instance variable declaration in the interface section. The book asked for the declaration to happen in the implementation but I guees with gnustep, that creates a bug. Hence, for the b instance I set 0 and 0 for numerator and denomintor in the main section.
Hope to read through the rest of the chapter tomorrow and start on some exercises.
If anyone other than me is reading this, happy Mother's Day to you and your family.
No comments:
Post a Comment