selectNext doesn't tickle NSArrayController's selectionIndexes binding
selectNext doesn't tickle NSArrayController's selectionIndexes binding
- Subject: selectNext doesn't tickle NSArrayController's selectionIndexes binding
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 7 May 2005 16:37:22 -0700
I've got a table view with columns bound to an NSArrayController.
The array controller's contentArray is bound to my document through
file's owner. The selectionIndexes binding is similarly bound to my
document's "selectedEventIndexSet" keyed value.
Everything works great with user clicks in the table, arrow key
manipulation, etc. Even my buttons whose target is linked to the
array controller's "add" and "remove" actions properly trigger the
"setSelectedEventIndexSet" method in my document.
A pair of buttons hooked up to the "selectNext" and "selectPrevious"
actions on the same array controller DO cause the selection to change
in the bound table view, but the underlying model (the document)
never gets its setSelectedEventIndexSet method call.
I can't see any options on the array controller that seem related to
enabling or disabling the propogation of this binding. Is this
something others have seen? At this point I'm thinking that I'll
have to change my technique from "manipulate the array controller" to
"manipulate the underlying model and let it percolate up through the
controller and ultimately the view.
This is on 10.4 in case that matters.
Thanks!
Daniel
_______________________________________________
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