lfalin
lfalin

Reputation: 4304

Xcode Property Automation

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

Answers (3)

John Gallagher
John Gallagher

Reputation: 6278

Check out:

  1. Matt Gallagher's property accessors script for XCode

  2. Accessorizer if you want a whole application for the generation of property accessors.

Upvotes: 3

wisequark
wisequark

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

Ben Gottlieb
Ben Gottlieb

Reputation: 85542

You can use the "Edit User Scripts..." menu option in the Scripts menu to create these yourself.

Upvotes: 1

Related Questions