Theocacao
Leopard
Design Element
Comment on "Lazy Loading of KVO Observed Properties"
by Jean-Daniel Dupas — Jun 18
That triggers the same KVO notification as the setter, so you end up back in infinite recursion.


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.
Back to "Lazy Loading of KVO Observed Properties"
Design Element

Copyright © Scott Stevenson 2004-2015