Re: displayNameForProperty D2W ?
Re: displayNameForProperty D2W ?
- Subject: Re: displayNameForProperty D2W ?
- From: Ramsey Gurley <email@hidden>
- Date: Thu, 06 Mar 2014 10:19:24 -0700
On Mar 6, 2014, at 8:56 AM, David Avendasora <email@hidden> wrote:
>
> On Mar 5, 2014, at 3:26 PM, Ramsey Gurley <email@hidden> wrote:
>
>> 100: pageConfiguration = “ListEntityPage” and propertyKey = “comments" => displayNameForProperty = “ListEntityPage.PropertyKey.comments” [ERDLocalizedAssignment]
>
> So, if I understand correctly, the value you are comparing dsiplayNameForProperty to is the key in the Localizable.Strings file. Right?
Yeah, in this example, ListEntityPage.PropertyKey.comments would be the key in your Localizable.strings files.
>
> Sigh, I didn’t even know there was a ERDLocalizedAssignment.
>
> Dave
There’s even an ERDDelayedLocalizedAssignment, in case you don’t want to cache the key.
You should read through all the assignment classes for entertainment value alone. There’s some mind bending stuff in there (ERDDelayedRuleAssignment?). Then one day, you realize EOQualifier should allow custom selectors in the LHS qualifier and your brain explodes.
100: location isInTenMileRadiusOf object.gpsCoordinates => blinkinLightColor = {"qualifierFormat" = “operationStatus = '@@'"; "switch" = {“NORMAL" = “green"; “OVER_HEATED" = “yellow"; “CRITICAL" = “orange"; “MELTDOWN" = “red"; }; } [ERDDelayedSwitchAssignment]
//Using method signature like this on the location object...
public boolean isInTenMileRadiusOf(Object obj)
http://www.reactiongifs.com/r/2011/09/mind_blown.gif
:D
_______________________________________________
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