• 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: Synchronizing data displayed by two instances of my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synchronizing data displayed by two instances of my app


  • Subject: Re: Synchronizing data displayed by two instances of my app
  • From: Denis Stanton <email@hidden>
  • Date: Mon, 5 Apr 2004 16:14:43 +1200

On 03/04/2004, at 8:33 AM, Marius Strumyla wrote:

Denis, did you try EOFetchSpecification.setRefreshesRefetchedObjects(true)
as Arturo suggested? This ensures that fetch specification updates the
already fetched objects. That's is all you need.

Thank you Marius

I WAS sure I tried setRefreshesRefetchedObjects to keep the data fetched by two instances in synch without success, but I just tried again so that I could give definitive response to your (and Arturo's) suggestion. It does work.

Putting
fetchSpec.setRefreshesRefecthedObjects(true);
immediately before
return new NSMutableArray(editingContext.objectsWithFetchSpecification(fetchSpec);
seems to do exactly what I wanted. I'm not sure yet whether the performance hit will be noticeable.


I understand that it is important not to use setRefreshesRefecthedObjects in between editing and saving changes.

Denis
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Synchronizing data displayed by two instances of my app
      • From: Jonathan Rochkind <email@hidden>
References: 
 >RE: Synchronizing data displayed by two instances of my app (From: Marius Strumyla <email@hidden>)

  • Prev by Date: RE: Action called twice for single form submission
  • Next by Date: Re: Synchronizing data displayed by two instances of my app
  • Previous by thread: RE: Synchronizing data displayed by two instances of my app
  • Next by thread: Re: Synchronizing data displayed by two instances of my app
  • Index(es):
    • Date
    • Thread