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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:25:05+00:00 2026-05-11T02:25:05+00:00

Okay this is a fairly broad question. This is my first App and I’m

  • 0

Okay this is a fairly broad question. This is my first App and I’m not sure the best way to go about this. The app is on the IPHONE.

I have a ‘Restaurant’ class. The restaurant has many different attributes and opening times. I currently store a restaurant in an instance of nsdata (it complies to NSCoding) LOcal storage is easy and I just use nsdata.

I have just built in an import/export function. I want these two methods to ‘post’ a restaurant to the web and ‘get’ a restaurant from the web. I know I can do this with NSUrlConnection and I have it up and working.

However I want to be cleverer about it. For instance what if I want to take my online list of restaurants that have been submitted and build a web interface that can also interact with the data?

This is what I am thinking so far: Create a ‘toString’ method that will convert my class into a textual representation. Then store the string on a server. This will replace storing nsdata online. Does this sound appropriate?

However, I want to be able to query the amount of restaurants and have a bit more control over my online ‘database’. Is XML the answer? I was about the start looking into Amazon Web Services and learn either Json or Rest.

Any bits of advice?

Thanks

Dan

  • 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. 2026-05-11T02:25:05+00:00Added an answer on May 11, 2026 at 2:25 am

    Learn about REST, it’s the easiest and cleanest way to provide a web-based API. Some frameworks, like Ruby on Rails, give you a REST interface right out of the box.

    Then, you’ll need to find a way to convert your objects on the iPhone into a REST-friendly format. XML and JSON are both options, but unfortunately I haven’t seen any code for converting to/from XML or JSON that I can really recommend, since I haven’t tried any just yet. But, there are some projects that might lead you in the right direction. One of the most promising-looking is this:

    http://github.com/yfactorial/objectiveresource/tree/master

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

Sidebar

Related Questions

Okay this is not a question of how to get all uniques or How
Okay, this may be a dumb question, but I've not been able to find
Okay this is a real headscratcher. I have an application which calls a web
Okay I have this RewriteRule which is supposed to redirect any request for the
Okay, this is just a crazy idea I have. Stack Overflow looks very structured
Okay I know I asked about this before, and the answer was basically cache
Okay, so I'm fairly new to model binding in MVC, really, and my question
Okay, so this is a straight math question and I read up on meta
Okay, my dilemma is this. I have an admin page that I use to
I am fairly new to Jquery and javascript and have jumped in head first

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.