I have a problem where the code above is executed with or without the second line and the method moveTicker never gets called (or gets called once when the second line is included). Could someone please tell me what is wrong with my code. I would be happy to disclose any other details needed to help me.
Your timer isn't scheduled. Use [NSTimer scheduledTimer...];
Thanks, worked. I knew it was something small like that, but that was the last place to look. One question for you though: how could I have scheduled the timer manually?
Thanks, worked. I knew it was something small like that, but that was the last place to look. One question for you though: how could I have scheduled the timer manually?
To quote the docs:
Quote:
Use the timerWithTimeInterval:invocation:repeats: or timerWithTimeInterval:target:selector:userInfo:rep eats: class method to create the timer object without scheduling it on a run loop. (After creating it, you must add the timer to a run loop manually by calling the addTimer:forMode: method of the corresponding NSRunLoop object.)
So you'd need to go look up the method addTimer:forMod in the docs on NSRunLoop.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.