So I did the exercise for 7.10 and my solution is very close to Daniel’s, but I left out the call to retain on the incoming parameter @name@. My code is working as desired, but I can’t help but feel I have this runtime “gotcha” in there for not calling retain. What would happen if the @name@ parameter were to get cleaned up on me, and how often would it occur? Is it worthwhile to walk the readers through a code sample that exposes this “gotcha” more prominently?
Awesome book, thanks!