Re: NSDate, NSTimer, NSTimeInterval combined question

2008-08-01 Thread Ron Fleckner
Hi Eric, The best thing to tell you to do, I think, is to read, or re-read, the documentation for NSTimer. A timer (ie, an NSTimer instance) will fire when you tell it to. In your startWatch: method, you've told it to fire every 0 (zero) seconds. I don't think that's what you want. I

re: NSDate, NSTimer, NSTimeInterval combined question

2008-08-01 Thread Allison Newman
Eric, Without looking too closely, I see several problems, there may be others. Firstly, in your updateTextfield method, you are using startTimewithout initialising it. Secondly, in your timer callback (updateTextfield), you never update the value of your clock gadget, so of course it d

NSDate, NSTimer, NSTimeInterval combined question

2008-08-01 Thread Eric Lee
I'm making a StopWatch, and I'm just a beginner, so please be patient with me. I have two tabs. The first tab is a timer, while the second tab is a clock in string format. I have a few problems with both of them. The problem with the timer is that it starts from January 1st, 2001. How can