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 4028644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:14:44+00:00 2026-05-20T11:14:44+00:00

I am new to objective-c/cocoa programming. I am making an application which is to

  • 0

I am new to objective-c/cocoa programming. I am making an application which is to constantly sync with a server and keep its view updated.
Now in a nutshell, heres what I thought of: Initiate an NSTimer to trigger every second or two, contact the server, if there is a change, update the view. Is this a good way of doing it?
I have read elsewhere that you can have a thread running in the background which monitors the changes and updates the view. I never worked with threads before and I know they can be quite troublesome and you need a good amount of experience with memory management to get most out of them.

I have one month to get this application done. What do you guys recommend? Just use an NSTimer and do it the way I though of…or learn multithreading and get it done that way (but keep in mind my time frame).

Thanks!

  • 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-20T11:14:45+00:00Added an answer on May 20, 2026 at 11:14 am

    Think about requirements. The most relevant questions, IMO, are :

    1. does your application have to get new data while running in background?
    2. does your application need to be responsive, that is, not sluggish when it’s fetching new data?

    I guess the answer to the first question is probably no. If you are updating a view depending on the data, it’s only required to fetch the data when the view is visible. You cannot guarantee always fetching data in background anyway, because iOS can always just kill your application. Anyway, in your application’s perspective, multithreading is not relevant to this question. Because either you are updating only in foreground or also in background, your application need no more than one thread.

    Multithreading is relevant rather to the second question. If your application has to remain responsive while fetching data, then you will have to run your fetching code on a detached thread. What’s more important here is, the update on the user interface (like views) must happen on the main thread again.

    Learning multithreading in general is something indeed, but iOS SDK provides a lot of help. Learning how to use operation queue (I guess that’s the easiest to learn, but not necessarily the easiest to use) wouldn’t take many days. In a month period, you can definitely finish the job.

    Again, however, think clearly why you would need multithreading.

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

Sidebar

Related Questions

I'm new to Objective-C and Cocoa programming, so in my first sample projects I've
Hey, I'm new to Objective-C and as well as programming with Cocoa at all..
I am currently working on an iPhone 2.1 application. I am new to Objective
I'm new to Cocoa programming, and decided for my first project to create a
New to Objective C. I have created a few directories which contain pdf files
First of all, I am a a very new Objective C/Cocoa iOS Developer but
First of all, thank God for Stack Overflow. I am new at Objective-C/Cocoa/iPhone development,
I'm new to Objective C and Cocoa - and I'm having a really hard
Alright, so I'm learning programming in Objective-C and Cocoa, and I've run into a
I'm new to the whole Cocoa/Objective-C malarky (but have years of C/C++ on *nix).

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.