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

Re: GID for deleted objects


  • Subject: Re: GID for deleted objects
  • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
  • Date: Mon, 15 Jun 2020 09:59:06 -0400

“mightDelete()” to remember
“didDelete()” to act
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e:  email@hidden <mailto:email@hidden>  t:  (301) 956-2319



> On Jun 15, 2020, at 6:14 AM, OCsite via Webobjects-dev
> <email@hidden> wrote:
>
> 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

 _______________________________________________
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: 
 >GID for deleted objects (From: OCsite via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: GID for deleted objects
  • Next by Date: Creating a EOModel in code
  • Previous by thread: Re: GID for deleted objects
  • Next by thread: Creating a EOModel in code
  • Index(es):
    • Date
    • Thread