• 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
How does the NSArrayController selection get set by a view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How does the NSArrayController selection get set by a view?
      • From: Kaspar Fischer <email@hidden>
  • Prev by Date: Re: What is the best/simplest/proper way to make right mouse click "do" left mouse click as well in NSTableView
  • Next by Date: Re: What is the best/simplest/proper way to make right mouse click "do" left mouse click as well in NSTableView
  • Previous by thread: Double click in NSTableView and bindings. Anything special?
  • Next by thread: Re: How does the NSArrayController selection get set by a view?
  • Index(es):
    • Date
    • Thread