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
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
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
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