Re: Programmatic View Question
Re: Programmatic View Question
- Subject: Re: Programmatic View Question
- From: Richard Somers <email@hidden>
- Date: Sat, 18 Sep 2010 07:06:07 -0600
On Sep 17, 2010, at 10:25 PM, Seth Willits wrote:
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.
Thanks for your comments and insight. Yes, I absolutely do not want "a
massive blob of view creation code, and a big code landfill for every
view in the window". I like that. Very well said.
--Richard Somers
_______________________________________________
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