The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Initial Reaction: Apple's Conceptual Cocoa Objc Tutorial

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Initial Reaction: Apple's Conceptual Cocoa Objc Tutorial Posted: Feb 4, 2004 11:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Initial Reaction: Apple's Conceptual Cocoa Objc Tutorial
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
Objective C fascinates me. I don't know why, it's not like its near as cool as Smalltalk, but sometimes I have to work in C, and it just feels like the "right" way to bolt an object model on top of C. So, I've been working my way through some of the Objective C tutorials out there, both Apple's and those that spin from the GNUstep stuff.

Tonite, I've been working my way through one of the one's on Apples ADC site: Introduction to Developing Cocoa Objective-C Applications . Early on, we get to an explanation of MVC. It starts out good with this quote:

Currency Converter is an extremely simple application, but there's still a design behind it. This design is based up on the Model-View-Controller paradigm, the model behind many designs for object-oriented programs. This design pattern aids in the development of maintainable, extensible, and understandable systems. Model-View-Controller (MVC) was derived from Smalltalk-80. It proposes three types of object in an application, separated by abstract boundaries and communicating with each other across those boundaries.

That sounds good. I like the Smalltalk credit. As you read on though, you realize Apple's implementation of "MVC" is a hijacked one. View's the normal thing. Model means domain model. And controller, well, that's that "glue puppy" object. In fact at one point they suggest that in reality one would just do this with one of these "controller" objects, but to illustrate the point of objects... can you say main()?

I was taught early on to be wary of objects that end in "er." I get an especial kick out of the "main()" object in the design, the CoverterController.

Read: Initial Reaction: Apple's Conceptual Cocoa Objc Tutorial

Topic: Real Cross Platform Previous Topic   Next Topic Topic: Alternatives to the Death Penalty

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use