• 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
Notification or handler after an EO got snapshot update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notification or handler after an EO got snapshot update


  • Subject: Notification or handler after an EO got snapshot update
  • From: Samuel Pelletier <email@hidden>
  • Date: Fri, 21 Mar 2014 09:18:46 -0400

Hi,

I have a class where I added an ivar to keep a cache of some values extracted from toMany relationships. I want to clear this cache if the toMany is updated from another editingContext but I do not find a proper way to catch this event.

For simple attributes, creating a "public void_setAtributeName(ValueClass value)" method works but this is not called for toMany relationships. The EOEnterpriseObject method "void updateFromSnapshot(NSDictionary<String,Object> snapshot)" has a promising name but is not called.

Is there a way to trap this event, either with a notification or a method overrides? Something like "didUpdateFromSnapshot" would be wonderful.

Samuel


 _______________________________________________
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: Notification or handler after an EO got snapshot update
      • From: Ray Kiddy <email@hidden>
    • Re: Notification or handler after an EO got snapshot update
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: updating using Migrations with allowNull
  • Next by Date: RE: Application not start in womonitor
  • Previous by thread: Re: updating using Migrations with allowNull
  • Next by thread: Re: Notification or handler after an EO got snapshot update
  • Index(es):
    • Date
    • Thread