advertisement

Article:
  Animating Graphics in Cocoa, Part 1
Subject:   it didn't bomb
Date:   2002-01-13 22:33:09
From:   psheldon
Response to: NSTimer timer unneeded, speculation on losing balls

Nor did it make much sense. Here's why :


1. I think the idea of the timer is that it is like a sender that fires off the method, but I see it isn't used, like a time, in the method. So, if I call stepAnimation with it as an argument, I, not it, called stepAnimation which isn't going to wait for it.


2. We didn't want it to wait for more interactive controls, so the idea was a bit crazy there too.


I think I was tempted, by some communication between threads, to get some sort of foggy low level analogy of Everett phones working between parallel timelines. My idea was to suspend disbelief until I had a chance to get a handle on some ideas and make them "coherent".


This still lost the balls if I moved the sliders when ball near edge.