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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:04:11+00:00 2026-05-27T22:04:11+00:00

I am working on an iOS app that is basically a tip of the

  • 0

I am working on an iOS app that is basically a “tip of the day” thing. There are about 3500 tips already in the database. Every day, there will be a new tip added.

My idea is to store the 3500 tips in an NSMutableArray or NSMutableDictionary. Since the source data will grow daily, I’ll need a pattern to keep the data in the app’s data structure in sync as seamlessly as possible.

Something like this, on app launch?

  • Get id of last record in the array or dictionary

  • If more records exist that are not in the array, get them and append to array as objects. The objects will contain the db record id, tech tip title and tech tip text.

Am I on the right track here? NSMutableArray VS. NSMutableDictionary?

Thanks!

What design pattern fits this best?

  • 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-27T22:04:12+00:00Added an answer on May 27, 2026 at 10:04 pm

    I think the easiest would be, to save a token to the DB every time something in the DB was saved and associate all changed object to it. When the client ask for new data, it passes the last token it got to the server and the server response with the objects associated with the tokens generated since the token that was given by the client.

    How you store the data client side is a decision you have to make. But it is not about using NSMutableArray or NSMutableDictionary, but how to save it on the device. I’d suggest you to have a look into CoreData, but also direct SQLite or plist might be possible.

    And of course you can use dictionary and arrays at the same time. i.e. You could have a big array with all entries ordered by date and put the same entry objects into a dictionary with keys for the date.

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

Sidebar

Related Questions

I am working on an iOS app that has a highly asynchronous design. There
I'm working on an iOS app that uses a NSMutableURLRequest and a NSURLConnection to
I am working on an iOS app that needs to post to either Twitter,
I have been working on a Core Data iOS app that works perfectly through
I am working on a simple universal ios app that displays images in a
I'm working on an ios app with uitabviewcontroller that plays some music. I don't
I am working on an iOS 5 app. I have a view controller that
I am working on an iOS app that I want to stream photos/pics in
I am working on a PhoneGap app that is supposed to run on iOS
I'm working on an iOS app that requires the user to enter numbers into

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.