Cocoa - Timer object that can be started, suspended, resumed?

Posted by psychotik on Stack Overflow See other posts from Stack Overflow or by psychotik
Published on 2010-03-30T22:11:22Z Indexed on 2010/03/30 22:13 UTC
Read the original article Hit count: 406

Filed under:
|

I'm looking for a repeating timer object that allows me to create it once and then suspend and resume it as needed for the lifetime of my application.

I've seen documentation for NSTimer and although I think I can make it do what I want by building an abstraction on top of it that creates/invalidates timer objects multiple times, I was curios if there is a better way using some other system timer implementation. I'm not too familiar with Mac development and couldn't find any other leads besides NSTimer.

© Stack Overflow or respective owner

Related posts about mac

Related posts about cocoa