• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bindings Basics: selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bindings Basics: selections
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Custom Framework Basics
  • Next by Date: Re: Tiger development Panther deployment
  • Previous by thread: Re: Custom Framework Basics
  • Next by thread: Re: Bindings Basics: selections
  • Index(es):
    • Date
    • Thread