Hi All,

I pass an EOGlobalID to a background thread.  The background thread then tries 
to get an EO for it in an editing context used exclusively by the background 
thread.  I do this:

        Foo localFoo = (Foo) 
backgroundThreadEditingContext.objectForGlobalID(gid);

However the returned value is null.  I'm thinking this is because the EO 
corresponding to the global ID has never been fetched through the 
backgroundThreadEditingContext.

What should I be using to get an EO?   This maybe?

        Foo localFoo = (Foo) 
backgroundThreadEditingContext.faultForGlobalID(gid, 
backgroundThreadEditingContext);

Thanks,
Ricardo


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to