Ramsey,
So if I understand this, if theArrayOfTitles is an array of strings, then the 
childernChoices need to correspond to the names in the array.
given that today theArrayOfTitles = ("SaleAds", "Broadcast") then 
        {       name = Root;    children = "session.theArrayOfTitles";  
childrenChoices = {                     1 = (SaleAds);                  2 = 
(Broadcast);        };      },      {       name = SaleAds; //do something  
        },      {       name = Broadcast;       //do something  
        }       I do not understand how to populate the childrenChoices because 
tomorrow:
theArrayOfTitles = ("PetProjects", "Broadcast", "Exploratory")
so there is a different number of 'choices'. Am I missing something in the 
childrenChoices?
I am thinking I could just display Projects and sort on category. it would be 
possible to do something like
Category1     project1     project 3
Category2     project2     project5
etc. I am going to examine the D2WList pages and see if I can figure out how to 
do this.
Ted
--- On Wed, 7/18/12, Ramsey Gurley <ramseygur...@gmail.com> wrote:

From: Ramsey Gurley <ramseygur...@gmail.com>
Subject: Re: D2W tabs question
To: "Theodore Petrosky" <tedp...@yahoo.com>
Cc: webobjects-dev@lists.apple.com
Date: Wednesday, July 18, 2012, 10:14 AM

Just use children
/*If children is a keyPath instead of an array, then the value for thekeyPath 
is used to determine the children choices shown. If the keypath evaluates to an 
NSArray, then the resultant array is used as the children array.If the array 
evaluates to a String, then that String is used as a keyto find the array of 
children in the 'childrenChoices' dictionary.*/children = 
"session.availableProjectCategories";

On Jul 17, 2012, at 8:22 PM, Theodore Petrosky wrote:
I am starting a new project with D2W. I am not totally comfortable but with 
practice comes more practice.

This is a 'Project Manager'. A Project belongs to a Category. I want to display 
the different Categories as tabs however, the Categories can come and go. 
Basically at start up, I need to read the list of categories and create the tab 
structure.

So how do I talk to the NavigationMenu.plist after the app has launched?

I hope there is an example to follow!!!

Ted
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com

This email sent to ramseygur...@gmail.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Reply via email to