Re: Binding the current table view selection to property in my controller
Re: Binding the current table view selection to property in my controller
- Subject: Re: Binding the current table view selection to property in my controller
- From: "Clint Shryock" <email@hidden>
- Date: Thu, 19 Jun 2008 07:44:20 -0500
NSTableView sends a NSTableViewSelectionDidChangeNotification notification
when it's selection changes, you could have your window controller listen
for those notifications.
also, you could make your window controller the tableView's delegate and
implement the table view's tableViewSelectionDidChange: delegate method.
once the selection is changed, you can update the "current port" with the
tables selected row
_clint
On Wed, Jun 18, 2008 at 6:57 PM, Rick Mann <email@hidden> wrote:
> I have a window controller that provides a list of ports displayed in a
> table view. The master-detail view I set up works fine, and I can adjust
> attributes of individual ports as you would expect.
>
> However, I want my window controller to have a "current port" property that
> reflects the current selection in the table view. This seems like an obvious
> thing to be able to do, but I don't see how to do it.
>
> Could someone please explain? Thanks!
>
> --
> Rick
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden