I have a question about the following three lines of code (bottom of p. 96):
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:wholeWindow];
My question is regarding the line 3. By releasing the scrollView instance we are decrementing the count by 1. I’m assuming in line 2, we are increasing the retain count thus scrollView is still going to be around. It doesn’t make much sense to me to create an object in line 1 and then destroy it right away in line 3 without using it. Does this mean that ‘window’ is actually in charge of releasing scrollView?