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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:36:33+00:00 2026-06-05T16:36:33+00:00

Today at work, I was given a task to fix a bug within our

  • 0

Today at work, I was given a task to fix a bug within our iPad application that we are developing. The issue relates to information updates not displaying correctly about syncing between the app and the web service or the inconsistencies of the app not syncing at the times it should and thus the information displayed, in the UIButton, being incorrect. The querying of the web service to get updated data and other meta information occurs on several subclassed NSOperation classes. The information updates, when some event finishes or what not in the NSOperation subclass, posts a notification using notification center by adding an operation with block on the main queue of the NSOperationQueue. The syncing occurs when the app first loads and every five minutes. If the five minute mark occurs while the app is in the background, the sync occurs once the app comes back to the foreground.

When our inbox view controller is allocated and the view will appear, UIButton doesn’t show that syncing is in progress but one can tap on the button to begin a sync. In the inbox view controller on the view will appear method, the code does a check if syncInProgress. There are several edge cases where this check fails; well, as far as I can tell based on what I understand of my task and the code base that I’ve been figure out so far.

- (BOOL) syncInProgress {
    return _serviceCounter > 0;
}

At the bottom, of the description of the bug it, perhaps take a state approach vs just responding to events. Not sure that that means.

  • 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-06-05T16:36:36+00:00Added an answer on June 5, 2026 at 4:36 pm

    Yes its very simple, iOS provides a way to check for a change in state on an element, and when this occurs a method object or something can be notified.

    Key Value Coding

    KVO’s primary benefit is that you don’t have to implement your own
    scheme to send notifications every time a property changes.

    If this is not what you mean please feel free to specify.

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

Sidebar

Related Questions

Today at work someone tried to convince me that: {$obj->getTableInfo()} is fine for smarty/mvc/templating
I came across some javascript at work today that used jQuery to fetch two
I'm currently making an application with Backbone.js and some JQuery libraries. Today I work
I work in an asp.net shop, and I heard today that the bottleneck on
Today a work mate posed a question to me. Given a grid of characters
Today is my first day writing Excel macro and I was given a task
Today at work, I stumbled upon a problem that was driving me nuts. Basically
I ran into an interesting problem at work today. I got a request to
Problem This question actually came up at work today. We are planning an experiment
As we work in team today, and we use different OSes, is it possible

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.