Re: Can not get objectForGlobalID
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