Bindings Basics: selections
Bindings Basics: selections
- Subject: Bindings Basics: selections
- From: Niko Matsakis <email@hidden>
- Date: Sun, 29 May 2005 23:50:16 +0200
I do not understand how a selection gets set in Core Bindings. I
have an ArrayController which is used by an NSPopUpButton; based on
which choice is selected, I'd like to populate an NSTableView.
I have seen several examples that have an NSTableView, and use the
selection in the table view to populate some other fields. This is
the default interface generated by Option-Dragging a Data Model into
IB, for example. Unfortunately, I just don't get how it works.
In this case, the "detail" fields which are being populated (that
contain the details of the current entry), always refer to the array
controller and use a path like "selection.xxx".
It's not clear to me how selection is set; if there are multiple
NSTableViews using a given controller, for example, whose selection
is set? (or is the answer "don't do that") It must be that the
NSTableView automatically adjusts the selection of its Content Set
Array Controller through some means, because I can't find where it's
being asked to.
Does it work differently if it is a NSPopUpButton that is reading
from the array controller? Does it not set the selection? Can I
make it do so?
thanks!
Niko
_______________________________________________
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