• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSArrayController filterPredicate not truly observable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Prepending to fixed length
  • Next by Date: Scrolling behavior ala Preview
  • Previous by thread: Anyone using the PostgreSQL framework from P3 Consulting
  • Next by thread: Re: NSArrayController filterPredicate not truly observable
  • Index(es):
    • Date
    • Thread