Re: When saving the managed object context

2009-07-24 Thread Mike Abdullah
On 22 Jul 2009, at 15:22, Squ Aire wrote: 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. S

Re: When saving the managed object context

2009-07-22 Thread mmalc Crawford
On Jul 22, 2009, at 8:05 AM, Squ Aire wrote: On Jul 22, 2009, at 7:22 AM, Squ Aire wrote: How can I do some custom stuff before my NSManagedObjectContext saves? Register for NSManagedObjectContextWillSaveNotification. I see no such thing in my docs. Only DidSave. Not WillSave. Sorry, I've

RE: When saving the managed object context

2009-07-22 Thread Squ Aire
I see no such thing in my docs. Only DidSave. Not WillSave. > From: mmalc_li...@me.com > Date: Wed, 22 Jul 2009 07:54:30 -0700 > To: cocoa-dev@lists.apple.com > Subject: Re: When saving the managed object context > > > On Jul 22,

Re: When saving the managed object context

2009-07-22 Thread mmalc Crawford
On Jul 22, 2009, at 7:22 AM, Squ Aire wrote: How can I do some custom stuff before my NSManagedObjectContext saves? Register for NSManagedObjectContextWillSaveNotification. mmalc ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

When saving the managed object context

2009-07-22 Thread Squ Aire
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 NSMan