Re: Assignment or com.webobjects.directtoweb.Assignment
Re: Assignment or com.webobjects.directtoweb.Assignment
- Subject: Re: Assignment or com.webobjects.directtoweb.Assignment
- From: Ramsey Gurley <email@hidden>
- Date: Thu, 14 Mar 2013 10:00:34 -0700
On Mar 14, 2013, at 8:27 AM, Theodore Petrosky wrote:
> Assignment or com.webobjects.directtoweb.Assignment
>
> what is the difference between those two? I feel like I am guessing all the time and just following past patterns.
The Assignment class name lookup happens with _NSUtilities.classWithName in EOKeyValueUnarchiver. You might need the full path if, for some reason, you had some other class named Assignment. Otherwise, they should work the same.
> is there a way to search and figure out what all the different settings are for. I mean when would I use:
>
> com.webobjects.directtoweb.TabDictionaryComputer
cmd-shift-H and type in TabDictionaryComputer. Open the type heirarchy and you will see it has an ERD subclass.
Open ERDTabDictionaryComputer and javadocs state it is necessary to work with the ERD2W rule caching mechanism. So TabDictionaryComputer should not be used.
Double click on the ERDTabDictionaryComputer in type hierarchy opens it.
Right-click on the constructor and Open Call Hierarchy shows it is only called by its own static method which isn't called by anything. The class must be used with reflection. Probably in the rule file.
File search on ERDirectToWeb project for ERDTabDictionaryComputer shows it is used in two default rules:
10 : *true* => tabs = "<ERDTabDictionaryComputer>" [er.directtoweb.ERDTabDictionaryComputer],
10 : *true* => tabContents = "<ERDTabDictionaryComputer>" [er.directtoweb.ERDTabDictionaryComputer],
So it will compute the value of tabs and tabContents for you based on the values found in displayPropertyKeys.
So the answer is you would probably never use it. I didn't know the answer off the top of my head, but that's how I just found it.
Ramsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden