• 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: Locking in an eoObject.awakeFromInsertion(editingContext)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locking in an eoObject.awakeFromInsertion(editingContext)?


  • Subject: Re: Locking in an eoObject.awakeFromInsertion(editingContext)?
  • From: Ben Trumbull <email@hidden>
  • Date: Tue, 28 Oct 2003 19:06:06 -0800

while (re)implementing the awakeFromInsertion method of an EO (son of
EOGenericRecord), do I have to lock the editing context which is pased
as an argument?

No. These operations are always within the scope of another operation like: insertObject() objectsWithFetchSpecification() saveChanges()

which invoke more core methods:
insertObjectWithGlobalID()
faultForGlobalID()
refaultObject()
saveChangesInEditingContext()

I suppose if you ever manually called the awake* methods, then you would. But that would be odd.
--


-Ben
_______________________________________________
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: 
 >Locking in an eoObject.awakeFromInsertion(editingContext)? (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: How to create EOClassDescription in test code?
  • Next by Date: Is building from the command line supported?
  • Previous by thread: Locking in an eoObject.awakeFromInsertion(editingContext)?
  • Next by thread: Re: Locking in an eoObject.awakeFromInsertion(editingContext)?
  • Index(es):
    • Date
    • Thread