• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Obtaining EO from EOGlobalID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obtaining EO from EOGlobalID


  • Subject: Obtaining EO from EOGlobalID
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Mon, 15 Feb 2010 20:54:11 -0500

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Obtaining EO from EOGlobalID
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: What would it take?
  • Next by Date: Re: Obtaining EO from EOGlobalID
  • Previous by thread: Re: D2WEditRelationship
  • Next by thread: Re: Obtaining EO from EOGlobalID
  • Index(es):
    • Date
    • Thread