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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:03:39+00:00 2026-06-05T09:03:39+00:00

i’m trying to create a clear MVC model where the Controller is the only

  • 0

i’m trying to create a clear MVC model where the Controller is the only one with access to the view and the model, so the model does not know of the view and vice versa.

I have created my model in a seperate xcode project, tested it and it does what it has to do. Now i was thinking in stead of just copying the code to a new ‘complete application’ project with the controller and the view, is it maybe a better idea to just create a library for the model, and let the controller work with that?

As i love to keep the views and model ‘dumb’, i don’t see any issue, my controller just handles all communication.

Is there a clear do or don’t advice here? I have no clean benefit of extracting the model to a library (not gonna reuse it soon), but it just seemed more clean to have my model in a separate project and just import it as a library in my application, for my controller to access.

I have heard of ‘including other projects’ in your new xcode project, so maybe thats another way to keep my model in a seperate project and keep it working in the full application?

Just searching for the best way to approach the separation of my model and the controller.

Thanks!

  • 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-05T09:03:40+00:00Added an answer on June 5, 2026 at 9:03 am

    Setup your new ‘complete application’ project, then in the navigator right click and choose New Group, call this group ModelEngine and insert the modelEngine source files to the project. It will look similar to the image below.

    Under BuildPhase tab you see that the ModelEngine is compiled together with the complete app even so the file are locate inside the other project. (Not sure how big your modelEngine its, but I would expect a small overhead at compile time, if at all)

    Do not select copy files if needed (I think that what its called) because you want to have only one instance of your model engine files. Otherwise it could become confusing to understand which file is part of which project.

    The complete app can now #import the ModelEngine.h file. If needed, you can still run the Model Project as a separate app. If you make changes to the model they are immediately reflected also in the ModelEngine project.

    enter image description here

    HTH

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
Does anyone know how can I replace this 2 symbol below from the string
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported

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.