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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:56:24+00:00 2026-06-17T14:56:24+00:00

In Cocoa MVC adoption, View knows nothing about the Model, which illustrated in this

  • 0

In Cocoa MVC adoption, View knows nothing about the Model, which illustrated in this diagram:

Cocoa MVC interaction diagram

But consider this example:
I have Item class in my model and I want visual representation for it. Most obvious for me is ItemView class, which is initialized with Item.
So, in this way, I’m breaking Cocoa MVC rules and feeling uncomfortable with it. But, I’m feeling uncomfortable also not having class like ItemView. What is the most practical solution?

  • 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-17T14:56:25+00:00Added an answer on June 17, 2026 at 2:56 pm

    If you are really concerned about MVC, what about defining a method in your controller like:

    - (UIView*)itemViewForItem:(Item*)item;
    

    which is responsible for creating and “populating” your ItemView?

    You main controller class would then act as a controller both for your main view and all ItemViews you have got.

    Another approach would be giving each ItemView its own ItemViewController. This is perfectly fine and if your controller/view is of any complexity, IMO, also the best approach. The drawback with this is that dealing with controllers container is supported only on iOS>5.

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

Sidebar

Related Questions

I'm tryin to grasp the fundamentals of Cocoa (Iphone) MVC design, but it's being
The cocoa view guide describe how to create a custom view. but I'm confused
I'm not very experienced with Cocoa but I am with MVC and coding in
Cocoa's NSScrollView is horribly under-explained. I hope someone here knows what it's all about
There's a diagram depicting the difference between traditional MVC and Cocoa MVC here: Cocoa
In Cocoa, I am trying to implement a button, which when the user clicks
Given a Cocoa application which runs on Mac OS X 10.7 and later: What
I am new to Cocoa and wanted to develop an app which can use
I tried using juggernaut cocoa: https://github.com/fpotter/juggernaut-cocoa Added this line to my code: JuggernautClient *client
I notice 2 distinct flavors of MVC: 1) Original MVC where the Model talks

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.