Hacker News new | comments | show | ask | jobs | submit login

You want PropertyFromInstanceVariable from here:

http://www.bernard-web.com/pierre/code.html

This thing has saved me hours of aggravation. You highlight a line in the struct part of the Obj-C class definition, and it generates the @property, the @synthesize, and a line in dealloc. You can also highlight multiple lines, and it will generate multiple properties. It is even smart enough to know that ints are assign, NSStrings are copy, and other objects are retain.




Or just LLVM 1.5 or LLVM 2.0, as there are C flags you can pass in that will make it so you no longer have to add ivars to your header and make @synthesize the implicit default.




Applications are open for YC Winter 2018

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: