Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
Lachlan Deck <[email protected]> Tue, 18 Nov 2008 06:33:59 +1100
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 17/11/2008, at 4:17 AM, Guido Neitzer wrote: > On 16.11.2008, at 07:16, xiaoyaozone wrote: > >> 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? > > Before you start shooting yourself in the foot, start here: > > http://www.wocommunity.org/getting_started_with_webobjects.html Follow Guido's advice. But there are times when, for performance reasons, raw-row fetching rather than eo fetching makes sense. In that case *if* you need an eo from the raw row you'd use eoeditingContext.faultForRawRow(...). But why are you fetching raw rows? with regards, -- Lachlan Deck