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.)
by Peter Hosey — Jan 21
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.)