Re: NSUndoManager Undo/Redo Buttons
Re: NSUndoManager Undo/Redo Buttons
- Subject: Re: NSUndoManager Undo/Redo Buttons
- From: Duncan Bushell <email@hidden>
- Date: Wed, 15 Sep 2004 08:00:05 +0100
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