displayGroup.setObjectArray()?

Also, NSDictionaries? Gross. It sounds like your gut is telling you something. 
Listen to it. Java has Objects and Interfaces. Use them.

I despise looking at Java code when all I see is an array of dictionaries which 
holds more arrays which have yet more dictionaries full of arrays and so on. 
Dictionaries are opaque. You don't know what's in them. Magic keys, magic 
values, and zero javadoc to explain any of it. In the end, it results in the 
least maintainable and most confusing code imaginable.

Ramsey

On Apr 9, 2013, at 5:10 PM, Paul Hoadley wrote:

> Hello,
> 
> I needed to display the content of an array of NSDictionary objects, and 
> without thinking I just loaded them into an ERXDisplayGroup via an 
> EOArrayDataSource:
> 
> EODataSource ds = new EOArrayDataSource(EOClassDescription
>       .classDescriptionForClass(NSDictionary.class), editingContext());
> 
> Two observations followed:
> 
> 1.  This works.  I guess that pretty much answers my question, but are there 
> any undesirable side-effects?  (I probably shouldn't be specifying the 
> component's EOEditingContext up there.  I should change that to 
> ERXEC.newEditingContext().)
> 
> 2.  Not surprisingly the code throws an exception at runtime:
> 
> ERROR ERXEntityClassDescription  - Unable to register descriptions for class: 
> com.webobjects.foundation.NSDictionary
> java.lang.RuntimeException: Dummy
> 
> Can I safely catch and/or ignore that?
> 
> In short, I'd like to use all the nice ERXDisplayGroup machinery, but the 
> objects are NSDictionaries.  Am I likely to regret this in the future?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]

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

This email sent to [email protected]

Reply via email to