MVC with cocoa/objective-c

Posted by Leonardo on Stack Overflow See other posts from Stack Overflow or by Leonardo
Published on 2010-03-17T10:22:38Z Indexed on 2010/03/18 8:21 UTC
Read the original article Hit count: 571

Filed under:
|
|

Hi all,

I have a strong j2ee background, and I am trying to move to objective-c for some desktop/iphone programming.

I used many java web frameworks with mvc in mind, spring and struts ecc... so I am used to have servlet or controller which pass attributes to jsp pages, which is the view. In jsp pages with jstl you can call this attribute and render to video. In this way controller and view are (in theory) clearly separated.

With xcode, I can easily recognize the controller and the view built with IBuilder. All the tutorial I found, shown the controller which go and change directly labels or text fields.

So my two questions:

  1. seems to me that there's no separation between the two (controller and view), where I am wrong in that ?
  2. is there a way for a controller to pack all objects in a kind of context in a j2ee way and have the view read that context ?

thanks Leonardo

© Stack Overflow or respective owner

Related posts about mvc

Related posts about objective-c