Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6970457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:42:45+00:00 2026-05-27T16:42:45+00:00

I have a NS Timer Firing within a web view load that looks for

  • 0

I have a NS Timer Firing within a web view load that looks for information on the page. I then do some manipulations to the page setting checkboxes etc which bring in some AJAX functions which as people may know does not fire the webviewloaded method. In short I would like to create a time that checks every 5 seconds to check to for a specific part that only occurs when the proper information is loaded. This is fine I can do this, but I don’t know how to stop the NSTIMER as all the examples here do not show a parameter being passed into the function.

currently I have

   [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(fcheckForEditFinished) userInfo:nil repeats:YES];

-(void) fcheckForEditFinished
{
//Would like to kill timer at this point. 
}

Thanks Kevin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:42:46+00:00Added an answer on May 27, 2026 at 4:42 pm

    The documentation of scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: says this:

    aSelector
    The message to send to target when the timer fires. The
    selector must have the following signature:
    - (void)timerFireMethod:(NSTimer*)theTimer
    The timer passes itself as the argument to this method.

    And you can “kill” a timer by sending it the invalidate message. So change fcheckForEditFinished to fcheckForEditFinished: like this:

    - (void)fcheckForEditFinished:(NSTimer *)timer
    {
        if (checkForEdit()) {
            [timer invalidate];
        }
    }
    

    The timer will automatically pass itself as the parameter of fcheckForEditFinished:. Make sure you add the colon to the selector in your call to scheduledTimerWithTimeInterval:... too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now, I have code that looks something like this: Timer timer = new
Currently I have a PNG animation on a timer that is firing every .01
I have just noticed that my timer callback function stops firing when iPhone screen
I have a timer that needs to not process its elapsed event handler at
I have a timer on a page in ASP.NET. After a certain period of
I have a timer that ticks every 3 seconds. If the timer found something
I have an array an a timer that adds a new object to my
I have a page that uses the jquery function: $(document).ready(function() { and I have
I have a System.Threading.Timer that calls its appropriate event handler (callback) every 10 ms
I have a _Click event that is firing when a chart is clicked on.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.