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

  • Home
  • SEARCH
  • 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 6881735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:10:00+00:00 2026-05-27T05:10:00+00:00

I am fooling around with NSTimer in a program I am writing and am

  • 0

I am fooling around with NSTimer in a program I am writing and am having some troubles envisioning how I can do a specific task. What I want to have happen is that I want the process I am running (a method responding to a button push) to pause for a period of time and then continue. I can get the basic timer stuff to work by creating the timer in the button push method then watching it fire off and invoking a second method. However, I am not sure how I would go about pausing the button push process that spawned the timer in the first place.

Is there a way to have the button push method wait around until the timer methods fires off and tells the button push method to ‘go’? Is there a queue type entry or notification type entry that I can wait on in the button push method that would be sent by the timer selector method?

Any info would be helpful.

  • 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-27T05:10:01+00:00Added an answer on May 27, 2026 at 5:10 am

    I think you want to pause the main thread where your logic is running. Try using

    [NSThread sleepForTimeInterval: 1.0]; //pauses the thread for one second
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just fooling around with some Domain Specific Language designs for a new
I'm fooling around with Yahoo! pipes and I'm hitting a wall with some regular
I was fooling around with some functional programming when I came across the need
I'm fooling around trying to learn the ins an outs of LINQ. I want
I want to store events in a web application I am fooling around with
I've just been fooling around with a ListBox control that I want to style
I recently installed the BIRT all in one developer program and started fooling around
I am fooling around with Authorize.net and I have a problem I'm hoping someone
I'm fooling around with Ruby and basically I have @trans = { :links =>
I've been fooling around with OpenCV and want to continue working with it, but

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.