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: Gideon King <email@hidden>
- Date: Sun, 2 May 2010 04:43:21 +1000
Thanks guys - will look into that.
On 02/05/2010, at 3:11 AM, Kyle Sluder wrote:
> 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