• 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: [ANN] ChangeNotificationCenter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] ChangeNotificationCenter


  • Subject: Re: [ANN] ChangeNotificationCenter
  • From: Pierre Bernard <email@hidden>
  • Date: Fri, 4 Feb 2005 00:47:09 +0100

David,

the ERXDefaultEditingContextDelegate indeed has a few interesting tricks up its sleeve. Guess I should look at WOnder more often.

Now I believe the flushCaches() feature does not do exactly the same thing as my ChangeNotificationCenter. As I understand it it only clears caches when changes from another editing context are merged in. It does not seem to have a way of catching changes made to the EO within the same EC. ChangeNotificationCenter saves you from having to add cache invalidation to code to setter methods. Moreover I would have to check the documentations, as I am not sure the delegate is called when a snapshot is updated by a refreshing fetch.

Pierre

On Feb 3, 2005, at 10:39 PM, David Teran wrote:

Hi,

I just added another code snippet to my web page. The ChangeNotificationCenter provides for a way to watch for changes in EOs. The main use of this would be to be able to safely keep cached/computed/derived values that get cleared once out of sync. Grab it at http://homepage.mac.com/I_love_my/code.html

BTW, I have also ever so slightly updated my WebObjects page: http://homepage.mac.com/I_love_my/webobjects.html


much easier and faster its using

    public void flushCaches() {}


from ERXGenericRecord from ProjectWonder. Notifications are expensive and EOF already sends out enough notifications.



regards, David


_______________________________________________ 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: 
 >[ANN] ChangeNotificationCenter (From: Pierre Bernard <email@hidden>)
 >Re: [ANN] ChangeNotificationCenter (From: David Teran <email@hidden>)

  • Prev by Date: Graphviz
  • Next by Date: retrieve WOHyperlink url without tags?
  • Previous by thread: Re: [ANN] ChangeNotificationCenter
  • Next by thread: java.lang.ClassCastException
  • Index(es):
    • Date
    • Thread