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 (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to