Re: Responding to changes in outline view

2011-01-12 Thread Corbin Dunn
On Jan 11, 2011, at 5:32 PM, Rick Mann wrote: > i found two examples so far (one using notifications, one KVO) for responding > to changes in a table view's selection. There is one way: - (void)tableViewSelectionDidChange:(NSNotification *)notification; Implement it on your delegate. > > I

[SOLVED] Responding to changes in outline view

2011-01-11 Thread Rick Mann
I needed to observe selectionIndexPaths, not selectionIndexes. I only discovered this by adding the NSKeyValueObservingOptionInitial (would've been nice if the act of observing would check to see if the key exists). -- Rick On Jan 11, 2011, at 17:33:29, Rick Mann wrote: > Sorry, forgot to add

Resent: Responding to changes in outline view

2011-01-11 Thread Rick Mann
Sorry, forgot to add something (that my tree controller binds to Core Data). - I found two examples so far (one using notifications, one KVO) for responding to changes in a table view's selection. I tried the KVO approach in the sample code NSTabelViewBinding. It sets up KVO on the array c

Responding to changes in outline view

2011-01-11 Thread Rick Mann
i found two examples so far (one using notifications, one KVO) for responding to changes in a table view's selection. I tried the KVO approach in the sample code NSTabelViewBinding. It sets up KVO on the array controller: [myContentArray addObserver: self