Why my FirstResponder in InterfaceBuilder's file is missing redo:
connection (in Received Actions
list)? undo:
exists, but redo:
doesn't. How could I fix it?
FirstResponder missing redo:
Asked Answered
This is a bug. The workaround is to throw this in a file somewhere:
@interface NSResponder (Redo)
- (IBAction)redo:(id)sender;
@end
Then make your connection in Interface Builder. Once that is done you can delete this code.
This is a bug in Xcode, it doesn't see the redo: action even though it is there. As a workaround you can create a custom action redo: for making the connection.
See my Radar here: http://www.cocoanetics.com/2013/01/radar-interface-builders-first-responder-is-missing-some-editing-actions/
© 2022 - 2024 — McMap. All rights reserved.
FirstResponder
. It always has some default connections. And if you want to implementNSUndoManager
you need to use FirstResponder's connectionsundo:/redo:
. And I have implementedNSUndoManager
. AddedFirstResponder
'sundo:
connection to button witch should do undo function. It works. Now I needredo:
connection fromFirstResponder
to add redo function. And it always could be found inFirstResponder
, but now there is noredo:
connection in myFirstResponder
. Why could it be so? – JoneFirst Responder
placeholder item selected in a nib file, and has the connections inspector open,undo:
is not among one of the listedReceived Actions
... – Leucineredo:
doesn't exists – Jone