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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:03:50+00:00 2026-05-18T10:03:50+00:00

I recently watched the ‘Network Apps for the iPhone OS’ videos for WWDC 2010

  • 0

I recently watched the ‘Network Apps for the iPhone OS’ videos for WWDC 2010 in iTunes U and the speaker said that the best place to write your networking code is in the model. This kind of confused me because I have always placed this code in the controller classes. Can someone please explain why this is the best place for the networking code? Also if possible please provide an example, code or pseudocode, either works.

  • 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-18T10:03:50+00:00Added an answer on May 18, 2026 at 10:03 am

    I wonder if we’re all using the same terminology? Here’s what I would use and I think (though I’m saying this without much context) what the WWDC presenter meant:

    • Model. The data
    • View. What it looks like in the UI
    • Controller. The layer than mediates between the Model and the View

    Using these definitions, the controller is a terrible place to keep any networking code. It has nothing to do with the interaction between the UI and the data.

    Of course there’s no reason why you couldn’t have multiple classes for your model: one for the data representation and another to mediate between your web service and your data model. In this sense it would be a controller but would, nevertheless, be in the model layer of the application.

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

Sidebar

Related Questions

I watched this webcast recently, and I got the sense that a lot of
I recently watched a video demonstrating that a red5 application with only stub code
Recently, I've watched some videos about C# async bugs and got into discussions with
I recently watched several Google I/O videos where Google developers present GWT with respect
I recently watched a video from Google I/O on Best Practices for GWT Security,
I recently watched GoingNative2012 about, of course, C++11. In Bjarne Stroustrup section, I found
Recently, I was writing a class in which I discovered that I could reduce
I'm trying to unit test a custom action result. I recently watched Jimmy Bogard's
Recently, I try to build WebKit with VS2012. That cost me a lot of
Recently, I had the need for a function that I could use to guarantee

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.