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

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


  • Follow-Ups:
    • Re: Programmatic View Question
      • From: Raleigh Ledet <email@hidden>
    • Re: Programmatic View Question
      • From: Richard Somers <email@hidden>
  • Prev by Date: Re: Ports for stringWithContentsOfURL
  • Next by Date: Re: NSOutlineView auto expand threshold
  • Previous by thread: Re: Ports for stringWithContentsOfURL
  • Next by thread: Re: Programmatic View Question
  • Index(es):
    • Date
    • Thread