The default behavior of NSTimer to fire a registered selector is to count only for the duration of the time the machine is awake. So, If you set it to fire in 1 min, and you have your Mac sleep in 30 sec for 10 sec, it should fire in 1min 10sec.
However, whether your machine is in sleeping mode or not, there will be cases where you want to fire it in 1 min. At Noodling’s blog, there is a great post for it.
15 Oct
Entire (RSS)