NSArrayController filterPredicate not truly observable
NSArrayController filterPredicate not truly observable
- Subject: NSArrayController filterPredicate not truly observable
- From: Ken Victor <email@hidden>
- Date: Tue, 18 Jul 2006 15:12:29 -0700
according to the documentation for NSArrayController filterPredicate:
filterPredicate
Returns the predicate used by the receiver to filter the array
controller contents.
- (NSPredicate *)filterPredicate
Return Value
The predicate used by the receiver to filter the array controller
contents. Returns nil if no filter predicate is set.
Discussion
This property is observable using key-value observing.
my observer is setup as follows:
[arrayController addObserver: self forKeyPath: @"filterPredicate"
options: NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld
context: nil];
yet, when i examine the change dictionary in my
observeValueForKeyPath:ofObject:change:context: method, both the old
and new values are CFNull objects.
is this to be expected? if not, is this a known bug? (if not, i'll report it).
(i don't know if its relevant or not, but i do have the predicate
binding of an NSSearchField bound to the array controller's filter
predicate.)
thanx,
ken
_______________________________________________
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