MVC in Cocoa?
MVC in Cocoa?
- Subject: MVC in Cocoa?
- From: "Michael Hines" <email@hidden>
- Date: Thu, 20 Nov 2008 18:13:51 -0600
Hey guys,
This is my first message to the mailing list, so please let me know if
I violate any form of etiquette. I apologize ahead of time.
This is also my first Obj-C and Cocoa application.
My application is basically a client for a text-protocol TCP server.
If you are familiar with freechess.org, this is what I'm consuming.
I want to have several views for the application. For example I want
to have a login view, console view, a game board view, a chat view,
etc.
I have experience in Ruby on Rails, so I have an intuition that
somehow I should implement models for Commands, Chats, Games, etc.,
but I'm having trouble imagining how exactly this should be done.
Specifically, who should own the connection?
How should it communicate with the models?
How will the controllers get the same instances of the models?
How can I have the views update dynamically when the models change?
Or maybe I'm wrong, and the connection should have nothing to do with
the models.
Even though this is my first Obj-C/Cocoa program, I don't want it to
be a hack. I want it to be a learning experience.
Any pointers anyone has, or if there are white-papers out there about
something like this would be fantastic.
By the way, currently I am trying to use the NSSocketPort with
NSFileHandle as demonstrated on this page:
http://etutorials.org/Programming/Cocoa/Part+I+Introducing+Cocoa/Chapter+6.+Networking/6.5+NSFileHandle/
Thanks,
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden