• 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
Re: Can not get objectForGlobalID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can not get objectForGlobalID


  • Subject: Re: Can not get objectForGlobalID
  • From: Gary Teter <email@hidden>
  • Date: Tue, 16 Dec 2008 09:56:09 -0800

In general you want to use faultForGlobalID for this sort of thing. objectForGlobalID will return null if the enterprise object in question hasn't yet been registered in that particular editing context. faultForGlobalID will properly register the eo in the editing context.

On Dec 16, 2008, at 9:50 AM, Gennady Kushnir wrote:

Hello list.
I can not understand if it is a bug or I am doing something wrong.
I am caching EOGlobalID's for a reference table in a static NSMutableDictionary
However I noticed that this cache is not working:
EOEditingContext.objectForGlobalID returns null
but when getting that EO by other means, its GID is just the same as
requested one (not simply "equals" but "==")
In fact, sometimes it returns fine. But I can not get the difference...


Any ideas?

-- The Ent visualization project: http://wirehose.com/research/entvisualization



_______________________________________________
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: Can not get objectForGlobalID
      • From: "Gennady Kushnir" <email@hidden>
References: 
 >Can not get objectForGlobalID (From: "Gennady Kushnir" <email@hidden>)

  • Prev by Date: Can not get objectForGlobalID
  • Next by Date: Re: _wowrapper not terminated (solved)
  • Previous by thread: Can not get objectForGlobalID
  • Next by thread: Re: Can not get objectForGlobalID
  • Index(es):
    • Date
    • Thread