Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, the correct way to do it in that case would be to mark the ivar as @private, and have a private category on the class with a @property definition for that ivar (or just getter/setter methods). Leaving the ivar as protected and relying on a header file comment is just sloppy. Protected implies that any subclass can use it, not just Apple-blessed subclasses.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: