Odd behavior re: -windowWillReturnUndoManager:

2014-01-16 Thread Matthew LeRoy
Good morning, I’m implementing a floating document inspector for my document-based app, and am having trouble getting undo/redo working reliably when the inspector is the key window. Specifically, NSWindowDelegate’s -windowWillReturnUndoManager: doesn’t seem to be doing the trick like everythin

Re: Odd behavior re: -windowWillReturnUndoManager:

2014-01-17 Thread Quincey Morris
On Jan 16, 2014, at 11:51 , Matthew LeRoy wrote: > - (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window > { >if (window == [self window]) >{ >return [[self inspectedDocument] undoManager]; >} > >return nil; > } It seems to me that this is fundamentally wrong