Re: EOQualifier.filterArrayWithQualifier weirdness
Re: EOQualifier.filterArrayWithQualifier weirdness
- Subject: Re: EOQualifier.filterArrayWithQualifier weirdness
- From: Chuck Hill <email@hidden>
- Date: Thu, 1 Feb 2007 09:45:39 -0800
On Feb 1, 2007, at 12:26 AM, Lachlan Deck wrote:
On 01/02/2007, at 5:44 PM, Lachlan Deck wrote:
I've got a weird bug I'm trying to figure out and I'm currently a
little stumped. (Grab your coffee Chuck :-)
EntiyA <-->> Entity B <<--> Entity C
The story goes a little like this:
EOEditingContext ec; // assume exists
EntityA someA; // assume exists within ec
EntityA someC; // assume exists within ec
NSMutableArray bObjects;
EOQualifier qualifier;
Hmmm, okay so I'm attempting to localise someC from the shared ec.
someC = ( SomeC )EOUtilities.localInstanceOfObject( ec,
someCFromSharedEc );
Bummer. Doesn't work...
I avoid the shared EC, however, IIRC,
ec.setSharedEditingContext(null);
someC = ( SomeC )EOUtilities.localInstanceOfObject( ec,
someCFromSharedEc );
is what you want.
Chuck
--
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
_______________________________________________
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