• 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: editingContext.refaultObjects();
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editingContext.refaultObjects();


  • Subject: Re: editingContext.refaultObjects();
  • From: "Arturo Perez" <email@hidden>
  • Date: Thu, 26 Aug 2004 13:10:42 -0400

Hi Justin,

That just happened to be something that stirred painful memories :-) I was spurred to action one might say.

-arturo

Justin Tocci wrote:

Man I look forward to the day when I can just whip out java like that.

Thanks (yet again) Arturo. If you're ever in Fort Wayne look me up, my treat.

justin tocci
fort wayne, in



On Aug 26, 2004, at 11:55 AM, Arturo Perez wrote:

Justin Tocci wrote:

Sorry, I'm really sketchy on java. I'm trying to use something like that, but I'm lost as to how to find the object to stick into the method. I want the object that is going to be commited as a result of the saveChanges() method. Do you know a way to get the object(s) that would react to the saveChanges() method?
I think my code needs to look something like:
editingContext.itemsThatAreWaitingToSave(EOEnterpriseObject object);
EOEditingContext.saveChanges();
EOEditingContext.refreshObject(object)


NSMutableArray a = new NSMutableArray();
a.addObjects(ec.insertedObjects());
a.addObjects(ec.deletedObjects());
a.addObjects(ec.updatedObjects());
ec.saveChanges();
NSMutableArray gids = new NSMutableArray();
for (int g = 0; g < a.count(); g++)
gids.addObject(ec.globalIDForObject((EOEnterpriseObject)a.objectAtIndex( g)));


ec.invalidateObjectsWithGlobalID(gids);

-arturo
_______________________________________________
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.


References: 
 >editingContext.refaultObjects(); (From: Justin Tocci <email@hidden>)
 >Re: editingContext.refaultObjects(); (From: Justin Tocci <email@hidden>)
 >Re: editingContext.refaultObjects(); (From: "Arturo Perez" <email@hidden>)
 >Re: editingContext.refaultObjects(); (From: Justin Tocci <email@hidden>)

  • Prev by Date: Re: editingContext.refaultObjects();
  • Next by Date: EOGeneralAdaptorException Error
  • Previous by thread: Re: editingContext.refaultObjects();
  • Next by thread: Re: editingContext.refaultObjects();
  • Index(es):
    • Date
    • Thread