• 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
When saving the managed object context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When saving the managed object context


  • Subject: When saving the managed object context
  • From: Squ Aire <email@hidden>
  • Date: Wed, 22 Jul 2009 14:22:25 +0000
  • Importance: Normal

How can I do some custom stuff before my NSManagedObjectContext saves? (I want to cleanup some "garbage" that might get created while my app is running). In my case this would be faster to do than override my NSManagedObject didTurnIntoFault.

So, to do this, is it safe for me to subclass NSManagedObjectContext and override save:? Or is this one of those methods I should not override? Any better ways?
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx_______________________________________________

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: When saving the managed object context
      • From: Mike Abdullah <email@hidden>
    • Re: When saving the managed object context
      • From: mmalc Crawford <email@hidden>
  • Prev by Date: Re: Changing default button cell in Cocoa Application
  • Next by Date: Re: dragging to move objects around?
  • Previous by thread: RE: dragging to move objects around?
  • Next by thread: Re: When saving the managed object context
  • Index(es):
    • Date
    • Thread