Re: Question regarding NSArrayController, KVO and Core Data
Re: Question regarding NSArrayController, KVO and Core Data
- Subject: Re: Question regarding NSArrayController, KVO and Core Data
- From: Todd Cash <email@hidden>
- Date: Sun, 15 Jan 2006 20:30:08 -0800
I have the code in the AwakeFromNib method in my AppDelegate.
LogController is not null at that point (but it has no records in it
yet).
I've also tried wiring this up to the ManagedObjectContext but that
does not work either.
In my AppDelegate I've tried both of these code snippets but my
implementation of observerValueForKeyPath:ofObject:change:context:
is never getting called -
[logsController addObserver:self forKeyPath@"selection.date"
options:NSKeyValueObservingOptionNew context:NULL];
Where did you put this code? Is logsController nil...?
Note you should avoid using NULL as the context. At some stage you
may need to discriminate between observations.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden