One can put an observer on the selectedIndex
method of NSArrayController
. This method has some drawbacks I think :
what will happen when the
arrangedObjects
is rearranged ? I admit this is not a very important problemif we ask the observer to remember the old value of
selectedIndex
, it doesn't work. It is known but I cannot find again the link.
Why doesn't NSArrayController have a delegate ? Is there another way to achieve what I want to do : launching some methods when the selection changes ?
TableView
in my interface...