Re: Bindings Basics: selections
Re: Bindings Basics: selections
- Subject: Re: Bindings Basics: selections
- From: Niko Matsakis <email@hidden>
- Date: Wed, 1 Jun 2005 22:07:11 +0200
If you replaced your popup with an NSTableView you'd see that
everything was working fine. Bindings with popup controls is a
little different than with other view objects. In your case, you
bound the contents of the popup to be the arranged objects from
your mailboxes array, which was fine. You also bound your columns
in the tableview to the emails array of the selection from the
popup, which was fine. The last piece, which connects the other two
together, is that you need to bind the *index* of the popup as well.
This works great, now, next question: ;)
So in the case of an NSTableView the selection is set automatically
to the selected row(s), but in a pop up it must be made explicitely?
If I wanted to make the selection be set explicitely for an
NSTableView, would I bind the "selectionIndices" for the NSTableView
to the equivalent item on the controller?
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