• 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: Code review for refreshToOneRelationshipWithKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code review for refreshToOneRelationshipWithKey


  • Subject: Re: Code review for refreshToOneRelationshipWithKey
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 03 Sep 2016 23:44:19 -0400

Mike Schrag gave a talk on this.

http://www.wocommunity.org/podcasts/wowodc/west09/WOWODC09W-WonderInDepth.mov

take a listen to the section at around 19 minutes in. I reread your original post, and I think this IS what you are looking for.

again jmo!


On Sep 3, 2016, at 5:11 PM, Ricardo Parada <email@hidden> wrote:

Thanks Aaron that is a great suggestion. I will give that a try as it does not require messing with snapshots and getting down to lower layers of EOF. I think I would feel better with an implementation like that. 

As for ERXJGroupsSynchronizer, I am not familiar with that and can't really tell how to use it. It also sounds like it might replace edits in progress. Thanks Ted. I had heard of this class before but did not know it was being used successfully. It is good to know. 

On Sep 3, 2016, at 4:45 PM, Aaron Rosenzweig <email@hidden> wrote:

Hi Ricardo,

That’s some clever WO-ninja magic you got going on there. I’ve never replaced the original snapshot of an EO before.

If it works, great - I won’t knock it but I’d be scared without flexing it (using it a bunch). 

Another idea… 

1) hold onto the “changesFromCommittedSnapshot” so you can refer to it.

2) in your fetchSpec make “setRefereshesRefetchedObjects()” to true - so when you go round trip you’ll update the EO.

3) reapply your changes from the committed snapshot.

Cheers,
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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: Code review for refreshToOneRelationshipWithKey
      • From: Ricardo Parada <email@hidden>
References: 
 >Code review for refreshToOneRelationshipWithKey (From: Ricardo Parada <email@hidden>)
 >Re: Code review for refreshToOneRelationshipWithKey (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: Code review for refreshToOneRelationshipWithKey
  • Next by Date: Re: Code review for refreshToOneRelationshipWithKey
  • Previous by thread: Re: Code review for refreshToOneRelationshipWithKey
  • Next by thread: Re: Code review for refreshToOneRelationshipWithKey
  • Index(es):
    • Date
    • Thread