• 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: Duncan Bushell <email@hidden>
  • Date: Fri, 17 Sep 2004 08:37:42 +0100

Hi Keith

Thanks for that. I removed my Edit menu and used Interface Builder's Edit
menu instead and it works, except the Undo button doesn't get its shortcut
whereas Redo does.  But then when I add my own buttons to the Edit menu the
IB Undo/Redo buttons are left there and two further ones are added instead,
further down the menu.

Bizarre!

Duncan


On 15/9/04 9:01 pm, "Keith Renz" <email@hidden> wrote:

> 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

References: 
 >Re: NSUndoManager Undo/Redo Buttons (From: Keith Renz <email@hidden>)

  • Prev by Date: Re: Couple more binding questions
  • Next by Date: Re: [Somewhat-OT] Unexpected behaviour of varia ble argument lists
  • Previous by thread: Re: NSUndoManager Undo/Redo Buttons
  • Next by thread: Drag and get the keyDown
  • Index(es):
    • Date
    • Thread