Design Element
Comment on "A Roadmap Through Cocoa"
by Peter Hosey — Jan 21
Scott: GCC will give you a warning if you try that (local variable declaration shadows instance variable declaration).

My solution is to not give my local variables the same name as my instance variables. (In -initWithFoo: and -setFoo: methods, I name the argument variable newFoo.)
Back to "A Roadmap Through Cocoa"
Design Element

Copyright © Scott Stevenson 2004-2015