How does the NSArrayController selection get set by a view?
How does the NSArrayController selection get set by a view?
- Subject: How does the NSArrayController selection get set by a view?
- From: Chad Woolf <email@hidden>
- Date: Fri, 9 Dec 2005 15:14:59 -0500
I am implementing a custom view, and I want to allow my view's
selection to be reflected back to the NSArrayController, like when
selecting rows on an NSTableView. I can do this by binding the
controller's "selectionIndex" to my view's "selectionIndex" (that is
what I called my binding which changes when the user selects
something different, like the selectionIndexes on an NSTableView).
This works fine, but I don't have to explicitly set this binding in
the Interface Builder so I think I'm missing something important on
how the controllers are supposed to work, or the IB is making this
binding implicitly and not making that obvious.
Does anyone know how this works under the covers? How does the
NSTableView communicate back to the NSArrayController as to which
selection has been made when the user clicks a table row?
Chad
_______________________________________________
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