Xcode: Possible to auto-create stubs for methods required by Protocol interface?

后端 未结 10 1112
心在旅途
心在旅途 2020-12-13 08:41

Coming from an Eclipse / Java background, one of my favorite features is the ability to quickly stub out all the methods required by an interface. In Eclipse, I can choose

10条回答
  •  执念已碎
    2020-12-13 09:22

    Accessorizer will write the encode and decode methods for ivars passed to it (NSCoding protocol and for NSDocument archiving). It will also generate string constants either static or #define with a custom prefix; copyWithZone:; and other things if you need - all from a simple shortcut via Services or from the toolbar. Accessorizer keyed archiving

提交回复
热议问题