Bindings with NSTableView
Bindings with NSTableView
- Subject: Bindings with NSTableView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 21 Jun 2004 14:16:04 +0200
I have an NSTableView which has two columns "Name" and "Size".
The value of the Name-column is bound to myArrayController; Controller
Key ="arrangedObjects" Model Key Path = "Name".
Other column similar;
myArrayController has contentArray bound to myObjectController;
Controller Key = "selection", Model Key Path = "myArray".
myObjectController has Outlet "content" connected to File's Owner,
which has an NSArray called "myArray", which contains NSDictionaries,
which have keys "Name" and "Size".
Everything displays fine.
But I also have a variable called "nameOfCurrentlySelectedRow" which
should contain the "Name" of the selected row in my NSTableView (no
multiple selection) or nil, if nothing is selected.
But I am absolutely clueless how to bind this to whatever.
Or, if this cannot be done, how do I get this? The table view can give
me the index of the selectedRow, but the table could be sorted in
different ways, so this does not help very much.
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.