More undo stuff.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20558 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-01-15 11:06:01 +00:00
parent 40da8da4c5
commit 7e6ddd83a6
3 changed files with 16 additions and 10 deletions

View file

@ -1,3 +1,9 @@
2005-01-15 05:59 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSDocument.m: Added undo:/redo: here. Smarter use
of the responder chain.
* Source/NSWindow.m: Removed undo:/redo: here.
2005-01-14 16:11 Alexander Malmberg <alexander@malmberg.org>
* Headers/AppKit/NSSavePanel.h (-panel:shouldShowFilename:):

View file

@ -930,4 +930,14 @@
[self updateChangeCount: NSChangeDone];
}
- (void) undo: (id)sender
{
[[self undoManager] undo];
}
- (void) redo: (id)sender
{
[[self undoManager] redo];
}
@end

View file

@ -4155,16 +4155,6 @@ resetCursorRectsForView(NSView *theView)
// Should only be defined on MS Windows
return (void *)_windowNum;
}
- (void) undo: (id)sender
{
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] undo];
}
- (void) redo: (id)sender
{
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] redo];
}
@end
/*