With the Extract Protocol refactoring you can create a new protocol based on the members of the current class. The created protocol will be implemented automatically.
Extract a protocol
Select a in the Project view, Structure view, or place the caret anywhere within a in the editor.
On the main menu or from the context menu of the selection, choose. The dialog appears.
Specify the name for the new protocol.
Select the members you want to be listed in the protocol in the members area.
Click Extract to proceed.
Click Refactor when ready. If AppCode shows you a Refactoring Preview in the Find tool window, review the suggested changes. To have the interface extracted and the proposed changes applied, click Do Refactor.