Setting selections in NSArrayController from view
Setting selections in NSArrayController from view
- Subject: Setting selections in NSArrayController from view
- From: Adam Behringer <email@hidden>
- Date: Mon, 8 Jan 2007 15:14:19 -0800
Hello,
I am trying to build a custom view that displays a set of objects
managed by an NSArrayController, similar to NSTableView.
I can't figure out how NSTableView is able to set the currently
selection in the NSArrayController when the only binding is
arrangedObjects.
It makes sense to me that binding arrangedObjects.description to a
table column allows the objects to display their description in the
table view, but there is something else going on here that allows the
table view to change the selection in the array controller when a
user clicks a row. There isn't a binding from the table view to the
NSArrayController...
How does this work behind the scenes?
Or, does anyone know of sample code that shows custom views working
with NSArrayControllers?
Thanks for your help.
Adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden