 Observing using KVO (Bindings->General)
Observing using KVO (Bindings->General)Register an observer with something like:[searchArrayController addObserver: self forKeyPath: @"selectionIndexes" options: NSKeyValueObservingOptionNew context: NULL];This makesselfan observer of thesearchArrayController. We'll get notified when theselectionIndexesvalue changes, and we'll be notified with the new value.When the notification happens, this method (invoked against the
selfused earlier) is invoked:- (void) observeValueForKeyPath: (NSString *) keyPath ofObject: (id) object change: (NSDictionary *) change context: (void *) context { } // observeValueForKeyPathand you can poke around the arguments to see wha'happened.