Re: Observing change of selection
Re: Observing change of selection
- Subject: Re: Observing change of selection
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 27 Jan 2005 17:48:20 -0800
On Jan 27, 2005, at 3:36 PM, Guy English wrote:
The simplest way is to just be 'old-fashioned' about it. Make your
Controller object a delegate of the table view in question and
implement the (void)tableViewSelectionDidChange method. Just because
you're using bindings doesn't mean that the table view won't talk to
it's delegate anymore.
Indeed; one additional thing to remember, though, is that you should
then probably ask the array controller for its selection. If your
table view supports sorting or your array controller supports
filtering, then asking your original array for the object at the index
of the table view's selection won't give you the correct answer...
If you want to stay with the bindings paradigm, on alternative is to
observe the array controller's selectedObjects. Using
tableViewSelectionDidChange: may be easier...
mmalc
_______________________________________________
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