Re: NSUndoManager Undo/Redo Buttons
Re: NSUndoManager Undo/Redo Buttons
- Subject: Re: NSUndoManager Undo/Redo Buttons
- From: Keith Renz <email@hidden>
- Date: Wed, 15 Sep 2004 16:01:25 -0400
Not sure if this was covered here, but in my document based Cocoa app,
the Undo and Redo menu items are the first two menu items in the
MainMenu nib's Edit menu with cmd-Z and shift-cmd-Z already set as
their key equivalents. Their actions are wired to First Responder's
undo: and redo: methods respectively.
Keith
-----
On Sep 15, 2004, at 3:00 AM, Duncan Bushell wrote:
Hi John
No - they appear as just plan "Undo <action>" and "Redo <action>",
cmd-Z and
cmd-shift-Z don't appear on the buttons and don't work. Other
shortcuts work
fine.
Also, and this is probably a big clue, I've just noticed that they are
replacing the first two items in my edit menu ("Retouch" and "Fine
rotate")
and replace these two buttons this even if I insert two different menu
items
at the head of the menu, or even insert my own "Undo" and "Redo".
Duncan
--
Duncan Bushell
07713 403352 mobile
01672 540174 office
www.sesl.co.uk
On 15/9/04 12:21 am, "John C. Randolph" <email@hidden> wrote:
On Sep 12, 2004, at 3:18 AM, Duncan Bushell wrote:
NSUndoManager automatically adds Undo and Redo buttons to my Edit
menu. I’d like to give the buttons keyboard shortcuts but can’t see
how to do this. Do I have to find the buttons in windowDidLoad: and
add the shortcuts there from code?
They should automatically be set to command-Z and command-shift-Z. Is
that not happening in your app?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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
_______________________________________________
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