Re: Undo manager
Re: Undo manager
- Subject: Re: Undo manager
- From: Lorenzo <email@hidden>
- Date: Wed, 06 Apr 2005 13:23:08 +0200
Hi,
after some test more I have seen that only one window doesn't register
[[self undoManager] setActionName:@"Move Object"];
No matter if I specify my own undoManager or use he default one.
However when I call the menu item "Undo" it works well. So please why one
window only shows all the time a generic "Undo" menu item name?
Also, I have seen that, when I launch the application, the menus "Undo" and
"Redo" are deactivated. This is right. But when I activate that window (even
clicking on its window bar), the "Undo" and "Redo" menu items become
activated. And no action (obvious) is performed when I call them. Why?
Best Regards
--
Lorenzo
email: email@hidden
> From: Robert Clair <email@hidden>
> Date: Tue, 15 Mar 2005 18:42:36 -0500
> To: Lorenzo <email@hidden>
> Cc: Cocoa List <email@hidden>
> Subject: Re: Undo manager
>
> You need to:
>
> 1) allocate your own undoManger
>
> 2) hold onto it in some central place in your application
>
> 3) make sure this is the undoManager returned by [myWindow undoManager];
>
> you accomplish #3 by reading up on and implementing the NSWindow
> delegate method:
>
>
> - (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)sender
>
> ....Bob Clair
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden