Re: Re-establishing KVO in Managed objects after undo
Re: Re-establishing KVO in Managed objects after undo
- Subject: Re: Re-establishing KVO in Managed objects after undo
- From: Kyle Sluder <email@hidden>
- Date: Sat, 1 May 2010 10:11:07 -0700
On Sat, May 1, 2010 at 9:34 AM, Dave Fernandes
<email@hidden> wrote:
> If you are observing something that is not part of your data model, you might try using mechanisms other than KVO to keep your data model updated. KVO can be a world of hurt when used the way you are using it. There are old threads on this topic. See, for example, "Strange NSManagedObjectContextObjectsDidChangeNotification behavior".
Agreed. Your controller should listen for MOC notifications to find
out when to start and stop observing objects. After all, that's what
NSArrayController does.
--Kyle Sluder
_______________________________________________
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