• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UndoManager Action Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: UndoManager Action Names
      • From: Charles Jolley <email@hidden>
  • Prev by Date: Re: NSBezierPath (again) and region subtraction.
  • Next by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Previous by thread: Re: TIFFRepresentationUsingCompression not working as it should
  • Next by thread: Re: UndoManager Action Names
  • Index(es):
    • Date
    • Thread