I have a NSTableView that is bound to a NSArrayController. The NSArrayController\'s contentSet property is bound to a
The model needs to be updated right after the animation is complete:
@IBAction func onRemoveClick(sender: AnyObject?) {
let selection = listController.selectionIndexes
NSAnimationContext.runAnimationGroup({
context in
self.tableView.removeRowsAtIndexes(selection, withAnimation: .EffectFade | .SlideUp)
}, completionHandler: {
self.listController.removeObjectsAtArrangedObjectIndexes(selection)
})
}
Works in my app with bindings. Tested on OS X 10.9, 10.10 & 10.11.