adamontherun / xCodeGenerateDescriptionPlugin

Plugin to automatically generate the description for your class in XCode
103 stars 11 forks source link

xCodeGenerateDescriptionPlugin

Xcode plugin to automatically override the description method for your class. Because overriding the description method is really helpful in debugging, but doing it by hand takes forever.

Install

Via Alcatraz (preferred)

alcatraz screenshot

Manually

Download source code and run the project. The plugin will be automatically installed

Restart Xcode regardless of install method.

Usage

  1. In the .h file of your class, select all the properties you want included in your - (NSString *)description method.
  2. In the edit menu select Make Description
  3. Plugin will do all the work for you.

.h .h file .m .m file

Notes

  1. Any property that's commented out with a // will not be included in the description
  2. Properties can have comments trailing them, such as @property (nonatomic) NSString *name; //el nombre