• 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: Solved: refreshObject doesn't seem to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solved: refreshObject doesn't seem to work


  • Subject: Re: Solved: refreshObject doesn't seem to work
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 9 Oct 2008 13:54:15 -0600


On Oct 9, 2008, at 1:40 PM, Ben Trumbull wrote:

That said, the addition of setRelationshipKeyPathsForPrefetching seemed to help even the SMB setup.

Not surprising. More fetching will reduce the window of opportunity for caching problems. I'm guessing you are mostly impacted by the staleness interval over network FS issue.


I'm having a similar problem as the OP, except that I'm not using a network, just plain ol' HFS+. But I've found that, if I have two applications using the same data store, and one of them adds a record into a mandatory-on-the-one-side one-to-many relationship with another record, then even with calling -refreshObject:mergeChanges: in the other app (where supposedly everything is supposed to revert to being a fault), the relationship between records is not updated unless the relationship is refreshed using -setRelationshipKeyPathsForPrefetching:.

Why is this happening? Why does -refreshObject:mergeChanges: apparently not work on relationships on a local volume?

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Solved: refreshObject doesn't seem to work
      • From: Ben Trumbull <email@hidden>
References: 
 >Solved: refreshObject doesn't seem to work (From: Steve Steinitz <email@hidden>)
 >Re: Solved: refreshObject doesn't seem to work (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Solved: refreshObject doesn't seem to work
  • Next by Date: Re: PopupButton in IB 3.1 ToolBar
  • Previous by thread: Re: Solved: refreshObject doesn't seem to work
  • Next by thread: Re: Solved: refreshObject doesn't seem to work
  • Index(es):
    • Date
    • Thread