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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/cts3e1%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to