• 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
Re: UndoManager Action Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >UndoManager Action Names (From: Charles Jolley <email@hidden>)

  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Re: RFC: Allocating via a protocol/interface
  • Previous by thread: UndoManager Action Names
  • Next by thread: Change type and creator
  • Index(es):
    • Date
    • Thread