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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:24:56+00:00 2026-05-27T06:24:56+00:00

All Cocoa MVC documentation I see on the apple dev site operates on entities

  • 0

All Cocoa MVC documentation I see on the apple dev site operates on entities like “data”: model holds “data”, controller displays “data”, view ensures that data and transferred forth and back. But such approach is good only if you create a database access application like “calendar” or “contacts” :(.

But where are some other application types? For example, let’s take a GUI “ping” application that creates a separate thread, pings remote computer and draws a nice graph of ping response times. Where actual ping code goes in Cocoa MVC? Is it inside model, controller or outside MVC?

Next example is “lock screen” utility that displays GUI to configure the shortcut that will lock OSX screen and will handle this shortcut. Actual app logic is the shortcut handle code and the code that will check that shortcut is not already used. Is it in model, in controller or outside MVC?

Parts of application like “check new version on startup” – is it inside model, controller or outside MVC?

I’m curious, are there any official info / guides from Apple that highlight mentioned questions? Or for Apple all applications are database frontends? 🙁

  • 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-27T06:24:57+00:00Added an answer on May 27, 2026 at 6:24 am

    The MVC architecture works for a wide variety of application types, not just data-centric applications. For example:

    • A GUI ping application should have a model that keeps track of the list of hosts, their current status, and their response times. The act of “pinging” itself would generally be called a controller function. I would likely create a PingManager object that centralized this. Alternately, you could have individual HostController objects that managed pinging the server and updated a Host model object. This should not be confused with a HostViewController. Controllers can coordinate model objects without requiring view objects.

    • Handling the interaction between the program and the shortcut system would be a controller function.

    • Version startup checks would generally be an application controller function, though it could be its own controller object (an UpdateManager for instance).

    Generally speaking, what you would most call “application logic” goes in controllers.

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

Sidebar

Related Questions

All right, after having worked through Cocoa Dev Central's Build a Core Data Application
Is it possible to download all Cocoa API documentation? I have to work offline
Being new to Cocoa, and probably not knowing all of the potential classes available
I'm just learning Objective-C/Cocoa programming for the Mac. All of the tutorials, books, blogs,
I'm building few command-line utilities in Xcode (plain C, no Cocoa). I want all
I notice 2 distinct flavors of MVC: 1) Original MVC where the Model talks
I'm working on a cocoa app for syncing data between two folders. It have
In Cocoa, is there any way to copy all the files in a directory
Hobbyist Cocoa programmer here. Have been looking around all the usual places, but this
I have an NSMenu instance, through which all communication with the Cocoa app will

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.