Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
"Cheong Hee (Datasonic)" <[email protected]> Mon, 17 Nov 2008 18:31:36 +0800
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <004501c9489f$abc0d0b0$1800a8c0@CHNGXP> |
Quick way is look into EOUtilities class: objectMatchingKeyAndValue(EOEditingContext ec, String name, String key, Object value) objectsMatchingKeyAndValue(EOEditingContext ec, String name, String key, Object value) More details could use EOFetchSpecification, EOQualifier etc. If I understand what you are trying to do, use a method to convert NSMutableDictionaries to array of Objects or EOs. Then passing to WORepetition for display. Cheers Cheong Hee ----- Original Message ----- From: xiaoyaozone To: webobjects-dev Sent: Sunday, November 16, 2008 10:16 PM Subject: How can I cast a NSMutableDictionary to a EOEnterpriseObject How can I cast a NSMutableDictionary to a EOEnterpriseObject, since I want to display the elements fetched from the database by using WORepetition. And what else methods can I use to search something in the database , whether EOUtilities.rawRowsForSQL is a preferred method? 2008-11-16 xiaoyaozone _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev