Simple question: at the top of p. 198, the code for the AppController.m contains the line:
preferenceController = [[PreferenceController alloc] init];
But what would be wrong with replacing the line with:
PreferenceController *preferenceController = [[PreferenceController alloc] init];
Note that the last version causes the compiler to issue a warning about the “preferenceController” variable not being used, while in the version above, all is ok. This question came up before in an earlier post submitted in Ch. 6 on “Re: Challenge:Make a Data Source” by loumaag on Sun Nov 27, 2011 4:13 pm.
But Adam’s reply didn’t really answer the question, but rather, just said, “Aha. Glad you got it resolved! Look out for those compiler warnings.”
If I can understand this simple point than I will have learned something more about Objective-C.