• 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
Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?


  • Subject: Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 10 Apr 2013 09:40:32 +0930

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
      • From: Chuck Hill <email@hidden>
    • Re: Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
      • From: Ramsey Gurley <email@hidden>
    • Re: Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
      • From: George Domurot <email@hidden>
  • Prev by Date: Re: Help on wocommunity
  • Next by Date: WOCommunity expenses and revenues
  • Previous by thread: WOWODC Cayenne training day on June 23
  • Next by thread: Re: Is it safe to use NSDictionary as the objects in a (WO/ERX)DisplayGroup?
  • Index(es):
    • Date
    • Thread