UndoManager Action Names
UndoManager Action Names
- Subject: UndoManager Action Names
- From: Charles Jolley <email@hidden>
- Date: Tue, 2 Jul 2002 12:38:07 -0500
Question why does the following show "Undo Clear" instead of "Undo Cut"?
- (void)cut: (id)sender
{
NSUndoManager* u = [self undoManager] ;
[u beginUndoGrouping] ;
[u setActionName: @"Cut"] ;
[self copy: sender] ;
[self clear: sender] ;
[u endUndoGrouping] ;
}
- (void)clear: (id)sender
{
NSUndoManager* u = [self undoManager] ;
[u beginUndoGrouping] ;
[u setActionName: @"Clear"] ;
// do clear
[u endUndoGrouping] ;
}
The Clear undo group is inside the Cut group, and the outermost group's
action name is shown, right?
Thanks!
-C
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.