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.
by Jean-Daniel Dupas — Jun 18
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.