Re: UndoManager Action Names
Re: UndoManager Action Names
- Subject: Re: UndoManager Action Names
- From: Charles Jolley <email@hidden>
- Date: Tue, 2 Jul 2002 15:03:07 -0500
Sorry, I did not intend to send this. I have already fixed it.
Thanks!
-C
On Tuesday, July 2, 2002, at 12:38 PM, Charles Jolley wrote:
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.
_______________________________________________
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.