On May 2, 2015, at 11:18 , William Squires <[email protected]> wrote:
> 
> Since, in both iOS and Mac OS X, a control IS a view, why don't controls have 
> their own dedicated view controllers?

There’s a philosophy about containment, referring not the parent/subview 
relationship, but the geometric and behavioral management of a piece of screen 
real estate in relation to a larger container in which it’s embedded. In the 
case of more or less self-contained units like controls, there’s nothing to 
manage that isn’t already managed by (e.g.) autolayout, so there’s no need for 
an external view controller for just the control. In other cases, there’s a 
more nuanced relationship between the parts and the whole.

I recommend you watch the WWDC video on the subject. I think it’s the one 
titled “The Evolution of View Controllers on iOS”:

        https://developer.apple.com/videos/wwdc/2012/ 
<https://developer.apple.com/videos/wwdc/2012/>

What’s important to notice is the kind of problem that’s being solved, and the 
way that view controllers allow you to avoid (e.g.) anything like the kind of 
gigantic monolithic window controllers that we’ve often had on OS X in the past 
(or, at least, avoided only with great difficulty).

Keep in mind, regarding the philosophy laid out in this video, that things have 
gotten even more so since then, and it’s finally started to reach OS X too.



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to