• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A question on MVC design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A question on MVC design


  • Subject: A question on MVC design
  • From: Adam <email@hidden>
  • Date: Sun, 16 May 2004 21:58:11 -0400

I am designing a game that plays over the internet. The classes I have so far are:

A view class to draw the state of the game
A model class to represent the state of the game
A controller class

I also have a socket stream class that is capable of sending and receiving commands to and from a server. I am not sure where this fits into the MVC design. Is it any of them?

Also, the model needs to update itself based on info the socket receives.

The controller needs to send commands to the server through the socket,

What is the best way for these 3 to communicate with each other? Messaging, instances of each-other other all over the place, is there a best way?


Thanks,
Adam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: A question on MVC design
      • From: Steve Sims <email@hidden>
  • Prev by Date: [Q] Document app but with non-document opening window - how to do it?
  • Next by Date: Re: [Q] Document app but with non-document opening window - how to do it?
  • Previous by thread: Re: [Q] Document app but with non-document opening window - how to do it?
  • Next by thread: Re: A question on MVC design
  • Index(es):
    • Date
    • Thread