Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
- Subject: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
- From: Gideon King <email@hidden>
- Date: Thu, 29 Jul 2010 08:43:39 +1000
Hi all, I need to do some stuff before my managed object context saves. I was successfully using NSManagedObjectContextWillSaveNotification in 10.6, but have to also support OS X 10.5, where that notification is not available.
Was there some notification sent prior to 10.6?
If the recommendation is to use a subclass of NSManagedObjectContext, then I would like to know where/how to make the switch so I don't get tripped up by what coredata does behind the scenes, where it swaps out your subclass for a standard context during save.
Another option that came to mind would be a simple method swizzle on the save: method. Maybe that would be a better option, but I'd like to hear what others did in 10.5...
Thanks
Gideon
_______________________________________________
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