Theocacao
Leopard
Design Element
Comment on "Lazy Loading of KVO Observed Properties"
by Scott Stevenson — Jun 18
@Jean-Daniel Dupas: AFAK, it's going to trigger the notification after you really affect myImage ivar (notification is triggered by -didChange:), so the (myImage == nil) condition will be false on the second call

I admit I'm not entirely sure what you're referring to here, but the problem is that willChange generates a call to the getter, which causes the recursion.
Back to "Lazy Loading of KVO Observed Properties"
Design Element

Copyright © Scott Stevenson 2004-2015