Re: Interference of a variable name with Interface Builder

2010-06-12 Thread Kyle Sluder
On Sat, Jun 12, 2010 at 3:08 PM, Jochen Moeller wrote: > Kyle, thanks for the insight. Renaming the outlet was also my solution. > Does that mean that an outlet can be invalidated by a future version of a > class which introduces a new method with accidentally the same name? Well, certainly. That

Re: Interference of a variable name with Interface Builder

2010-06-12 Thread Jochen Moeller
Am 12.06.2010 um 23:22 schrieb Kyle Sluder: > On Sat, Jun 12, 2010 at 2:11 PM, Jochen Moeller wrote: >> >> Normally variable names don't interfere with method names. > > Strictly speaking, Variable names can never interfere with method > names. The compiler determines the type it needs from co

Re: Interference of a variable name with Interface Builder

2010-06-12 Thread Kyle Sluder
On Sat, Jun 12, 2010 at 2:11 PM, Jochen Moeller wrote: > Hello List, > > Normally variable names don't interfere with method names. So I can write: Strictly speaking, Variable names can never interfere with method names. The compiler determines the type it needs from context, and then resolves th

Interference of a variable name with Interface Builder

2010-06-12 Thread Jochen Moeller
Hello List, Normally variable names don't interfere with method names. So I can write: CGFloat alphaValue = [ myCustomView alphaValue ]; Now, in an app the -drawRect: method of my custom view was not called although it should. I found out that the culprit was an outlet named "alphaValue" whic