Programmatic View Question
Programmatic View Question
- Subject: Programmatic View Question
- From: Richard Somers <email@hidden>
- Date: Fri, 17 Sep 2010 07:09:11 -0600
Consider the following architecture.
windowController
viewController
programmaticView
viewController1
programmaticView1
viewController2
programmaticView2
viewController3
programmaticView3
...
Each view has a number of objects (controls, buttons, text, etc.) The
objects in the view need to be setup and configured during
initialization. Normally you would do this setup and configuration
work in Interface Builder but since we have a programmatic view we
need to do it in code somewhere. Should the initial setup and
configuration of the objects in the view be done in the viewController
or the programmaticView?
The reason for the programmatic view is there are lots of similar
views with minor variations between them. Having a programmatic view
allows the objects in the view and the layout and configuration of
those objects to be controlled from a central location.
--Richard
_______________________________________________
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