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
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