Re: redo: action not in First Responder
Re: redo: action not in First Responder
- Subject: Re: redo: action not in First Responder
- From: Andy Lee <email@hidden>
- Date: Tue, 02 Jul 2013 14:36:39 -0400
On Jul 2, 2013, at 1:53 PM, Steve Mills <email@hidden> wrote:
> On Jul 2, 2013, at 12:10:22, Quincey Morris <email@hidden> wrote:
>
>> There is a button, but it's obvious only after you know where it is.
>>
>> Select the First Responder item in the list of XIB components on the left of the editing pane. Display the Attributes inspector in the pane at the right of the window, and you'll see a list of custom actions to which you can add actions.
>
> Ah, thanks. One usually finds that sort of thing in the same pane that the actual list resides. *grumble*
I clearly need to read up on undo management, but purely based on experience with the rest of IB, I find it odd that the default Undo and Redo menu items have actions that are not publicly declared -- at least undo: and redo: are not in NSResponder.h, NSObject.h, or in the documentation. Those actions are not listed in the Attributes inspector of the default MainMenu.xib, so it seems like *some* sort of special-casing is going on behind the scenes.
I notice there is a little yellow triangle next to the redo: action, but not the undo:, which again strikes me as odd.
I would have guessed you could copy and paste the Undo menu item from some other project, but that didn't work for me. The pasted menu item had no target or action.
In any case, you have it working now.
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden