Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject
Chuck Hill <[email protected]> Wed, 19 Nov 2008 12:09:04 -0800
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On Nov 19, 2008, at 11:53 AM, Lachlan Deck wrote: > On 20/11/2008, at 5:05 AM, Carl E. Lindberg wrote: > >> On Nov 17, 2008, at 9:01 PM, Chuck Hill wrote: >> >>> >>> On Nov 17, 2008, at 4:57 PM, Carl E. Lindberg wrote: >>>> >>>> On Nov 17, 2008, at 3:53 PM, Mike Schrag wrote: >>>> >>>>>> On a related note, w(hy)tf is there not a direct way to turn a >>>>>> raw row into a snapshot cache entry + fault? >>>> >>>> EOUtilities.faultWithPrimaryKey() ? Or maybe that refetches >>>> the row. Does EOUtilities.objectFromRawRow() ? >>> >>> All objectWithRawRow does is to extract the PK and then calls >>> faultWithPrimaryKey() (IIRC). So if the EO has not been fetched >>> and cached, this goes back to the database. >> >> Really? > > No, it calls ec.faultForRawRow(row, entityName) > which calls ec.faultForRawRow(row, entityName, this) > which calls objectstore.faultForRawRow(row, entityName, ec)... which extracts the GID and calls editingContext.faultForGlobalID(gid, editingContext); Slightly different call path than I recalled, but the same effect. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects