Macros to simplify the properties in Objective-C
In French : http://www.vincentsaluzzo.com/2013/07/01/des-macros-pour-simplifier-les-proprietes/
In English (Google Translate) : http://translate.google.fr/translate?sl=fr&tl=en&js=n&prev=_t&hl=fr&ie=UTF-8&u=http%3A%2F%2Fwww.vincentsaluzzo.com%2F2013%2F07%2F01%2Fdes-macros-pour-simplifier-les-proprietes%2F&act=url
Written by Vincent Saluzzo
Related protips
2 Responses
I think that you should start using snippets/live templates
propa(Tab) -> @property(nonatomic, assign)
props(Tab) -> @property(nonatomic, strong)
propc(Tab) -> @property(nonatomic, copy)
propr(Tab) -> @property(nonatomic, readonly)
and so on...
This solution will be better configurable, and you can freely use it on more than one project :) And it'll prevent mixing "Fully-declared properties" and "MACROS-declared properties"
Yes maybe, but with my Macro, I think my class code is more readable.
Minify the code but keep the verbose attract of Objective-C language !