FROM : Lorenzo
DATE : Wed Apr 06 13:23:08 2005
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_removed>
> From: Robert Clair <<email_removed>>
> Date: Tue, 15 Mar 2005 18:42:36 -0500
> To: Lorenzo <<email_removed>>
> Cc: Cocoa List <<email_removed>>
> 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
>
DATE : Wed Apr 06 13:23:08 2005
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_removed>
> From: Robert Clair <<email_removed>>
> Date: Tue, 15 Mar 2005 18:42:36 -0500
> To: Lorenzo <<email_removed>>
> Cc: Cocoa List <<email_removed>>
> 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
>
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Mar 16, 00:01 | |
| Robert Clair | Mar 16, 00:42 | |
| Lorenzo | Apr 6, 10:56 | |
| Lorenzo | Apr 6, 13:23 | |
| Jonathon Mah | Apr 6, 13:29 | |
| Lorenzo | Apr 6, 15:28 | |
| Jonathon Mah | Apr 6, 16:57 | |
| Lorenzo | Apr 6, 17:40 |






Cocoa mail archive

