Reputation: 4304
Xcode has these handy time savers in the scripts menu called "Code->Place Accessor Defs on Clipboard" and "Code->Place Accessor Decls on Clipboard". These scripts allow you to automate the generation of getter and setter methods for any highlighted instance variables.
Does anyone know of a similar script that outputs Objective-C 2.0 Property declaration statements?
Upvotes: 3
Views: 2651
Reputation: 6278
Check out:
Accessorizer if you want a whole application for the generation of property accessors.
Upvotes: 3
Reputation: 3268
I also recommend textexpander which makes the process a little more intuitive and generalized such that the same "snippets" can be used across text editors.
Upvotes: 0
Reputation: 85542
You can use the "Edit User Scripts..." menu option in the Scripts menu to create these yourself.
Upvotes: 1