• 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: NSUndoManager Undo/Redo Buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSUndoManager Undo/Redo Buttons
      • From: Duncan Bushell <email@hidden>
References: 
 >Re: NSUndoManager Undo/Redo Buttons (From: Duncan Bushell <email@hidden>)

  • Prev by Date: Re: NSUndoManager in non-document based app using bindings
  • Next by Date: mutating custom-class, becomes NSArray
  • Previous by thread: Re: NSUndoManager Undo/Redo Buttons
  • Next by thread: Re: NSUndoManager Undo/Redo Buttons
  • Index(es):
    • Date
    • Thread