• 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
GID for deleted objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GID for deleted objects


  • Subject: GID for deleted objects
  • From: OCsite via Webobjects-dev <email@hidden>
  • Date: Mon, 15 Jun 2020 12:14:53 +0200

Hi there,

I've just bumped into another problem which seems it should be pretty common,
but I can't see a decent solution (due to my blindness quite probably).

I am caching some information for EOs; the info is EC-independent, and
therefore the cache is keyed by global IDs.

When an EO is successfully deleted, I want to remove the info from the cache.
Thus, the cache observes EditingContextDidSaveChangesNotification and would
remove the userInfo[EOObjectStore.DeletedKey] objects.

The problem is that these objects are already unregistered from the EC and I
can't get their GIDs anymore.

Is there a decent known solution of this problem? I probably can do something
like storing GIDs of objects which are only being deleted somewhere and use
these stored GIDs later when the deletion succeeds, but that seems to be rather
at the complex and awkward side for a conceptually simple operation. Do I
overlook some simpler solution, or is this indeed the only way?

Thanks,
OC

 _______________________________________________
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: GID for deleted objects
      • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
    • Re: GID for deleted objects
      • From: Jesse Tayler via Webobjects-dev <email@hidden>
  • Prev by Date: Re: WO with docker and kubernetes
  • Next by Date: Re: GID for deleted objects
  • Previous by thread: Re: WO with docker and kubernetes
  • Next by thread: Re: GID for deleted objects
  • Index(es):
    • Date
    • Thread