NSMatrix selectedObject(s) binding
NSMatrix selectedObject(s) binding
- Subject: NSMatrix selectedObject(s) binding
- From: Mark Ackerman <email@hidden>
- Date: Mon, 27 Jun 2005 13:41:54 -0400
I'm attempting to create a master-detail interface, with an NSMatrix
(master) and NSTableView (detail). Can't get the detail of the
selected cell (NSTextFieldCell) in the matrix to display in the table
view when the user selects a cell in the matrix.
Content of NSMatrix is bound to NSArrayController (content =
controller.arrangedObjects, contentObjects =
controller.arrangedObjects.object, contentValues =
controller.arrangedObjects.value). Display in the matrix works
perfectly.
But, when I click a cell in the matrix (which I'd hoped would display
details of the cell's represented object in the table view), nothing
happens.
The matrix's "selectedObject" is bound to the controller's
"selection". (I've also tried binding selectedObjects to
selectedObjects, selectionIndexes to selectionIndexes, selectionIndex
to selectionIndex, etc., etc.)
The detail table view's contentArray is bound to a (different)
NSArrayController, which has its "contentArray" bound to the master
matrix's array controller's "selection" binding (and I've tried others).
Have tried every combination of matrix track mode, text field cell
editiable, selectable, enabled; nothing seems to work.
I can get this to work if I use a table view in place of the matrix,
but the matrix is much better for the interface (represents a monthly
calendar).
Did this all with an NSMatrix subclass and notifications in the 10.2
version of my app, and now trying to get "modern" with a 10.3/10.4
version using bindings.
Any suggestions?
Thanks,
Mark
_______________________________________________
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