• 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: "Gennady Kushnir" <email@hidden>
  • Date: Wed, 17 Dec 2008 15:51:03 +0300

Thank you! That works.

2008/12/16 Gary Teter <email@hidden>:
> 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

References: 
 >Can not get objectForGlobalID (From: "Gennady Kushnir" <email@hidden>)
 >Re: Can not get objectForGlobalID (From: Gary Teter <email@hidden>)

  • Prev by Date: Re: Is dynamic element action method order deterministic?
  • Next by Date: Outer Joins?
  • Previous by thread: Re: Can not get objectForGlobalID
  • Next by thread: optimization/indexing
  • Index(es):
    • Date
    • Thread