Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Dec 21, 2012, 11:56 AM   #1
ramy1989
macrumors newbie
 
Join Date: Nov 2012
NSTimer erroneously invalidated

I have an application that works like a feed and should keep me updated about the changes (read from a html page).
There is how I create the timer:

Code:
timer=[NSTimer scheduledTimerWithTimeInterval: [interval integerValue ] target: self selector: @selector(updateInfo:) userInfo: nil repeats: YES];
//
Now the updateInfo: method works well, the problem is with the timer.
Sometimes I am not updated about the page (I can check this manually), so I suppose that for some reason the timer is invalidated, even if I don't invalidate it anywhere.
Now the question is: There is a possibility that if the computer goes to background, when it restarts the timer gets invalidated?
ramy1989 is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Calendar erroneously adds alerts to new events kronborg OS X 10.8 Mountain Lion 35 Feb 9, 2014 05:54 PM
NSTimer Alternatives adimanic iPhone/iPad Programming 1 Jan 4, 2014 12:04 AM
NStimer in Background erdinc27 iPhone/iPad Programming 6 May 11, 2013 07:21 AM
Apple's 'Rubber Banding' Patent Key to Samsung Lawsuit Preliminarily Invalidated MacRumors MacRumors.com News Discussion 124 Oct 26, 2012 09:20 AM
NSTimer not firing eddjc Mac Programming 6 Jul 28, 2012 03:30 PM

Forum Jump

All times are GMT -5. The time now is 01:02 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC