I need to capture undo/redo key commands in an NSTableView and forward that down to a managed object context’s undo manager. I have tried overriding -keyDown, but that’s hard to navigate. I really need an internationalized solution to this problem that doesn’t revolve around checking for the “z” key with the command key modifier mask.
Is there a way I can set up my tableview to look for the standard “undo” key binding? Any ideas?
Implement windowWillReturnUndoManager in the delegate of the window containing your NSTableView. Then return your object context’s undo manager there. Then your table view will be able to receive those events.