xCodeGenerateDescriptionPlugin
View on Github
suggest edit
Github stars icon

104

Github forks icon

12

Github watchers icon

2

Last commit: over 2 years ago

Open issues: 5

License:

Last update: 4 months ago

xCodeGenerateDescriptionPlugin Overview

A handy Xcode plugin that can automatically override the description method of any class. Overriding the description method is really helpful in debugging your in memory objects, but doing it by hand is time consuming and error prone. With this plugin installed all you have to do is select the properties you want included and select Make Description from the Edit menu. The plugin will create a description method from your selected properties. It even handles converting known structs with their respective NSStringFrom… methods.

xCodeGenerateDescriptionPlugin latest README

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
%>