• 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
Re: Programmatic View Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic View Question


  • Subject: Re: Programmatic View Question
  • From: Seth Willits <email@hidden>
  • Date: Fri, 17 Sep 2010 21:25:44 -0700

On Sep 17, 2010, at 8:58 PM, Richard Somers wrote:

> My current inclination now is to change this and do all view composition, connecting, and binding in the controller. The root view would still be there but the controller would be doing most all of the work.


It's hard to answer such general questions well, but I'll give it a shot.

Whether the views are created programmatically or created by a nib, the overall architecture of where controller code goes shouldn't change, so having view controllers for actually "controlling and interacting" with the view makes sense.

As for where to put all of the view creation code, it one way or another is part of the view controller code. You can suck it out into some other reusable helper object if that's logical and useful. And feel free to have nested VCs where it makes sense though so you don't have a massive blob of view creation code, and a big code landfill for every view in the window.


Dunno how much that helps,

--
Seth Willits



_______________________________________________

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

  • Follow-Ups:
    • Re: Programmatic View Question
      • From: Richard Somers <email@hidden>
References: 
 >Programmatic View Question (From: Richard Somers <email@hidden>)
 >Re: Programmatic View Question (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Programmatic View Question
  • Next by Date: Re: i5 & i7 auto graphics switching
  • Previous by thread: Re: Programmatic View Question
  • Next by thread: Re: Programmatic View Question
  • Index(es):
    • Date
    • Thread