ABOUT
[Mark]

Hi, Mark Damon Hughes here.

I write neat little strategy and role-playing games for the iPhone.

I also help other people write their apps for the iPhone; if you need a contractor, I can solve any problem for you.

You can reach me by email at
mark@markdamonhughes.com

Visit my software gallery at
http://markdamonhughes.com/

ARCHIVE
By Category:
By Author:
By Date:

Mark Damon Hughes

MDH's Software Blog

Properties and Accessors 2010-03-28 01:06:00 GMT
in cocoa
by Mark Damon Hughes
Problem

Creating a property takes up to 4 lines of repetitive code in Cocoa: The ivar declaration and @property in foo.h, @synthesize and dealloc in foo.m.

Solution

You can use the commercial product Accessorizer, which is very powerful, but too big and full of clicky buttons and switches for my needs. I just wanted a tool to do minimal analysis of ivars and give me the text, which I can copy into place.

Download accessors.py and follow the instructions in the comments.


Pages: 0 1 2
METADATA
Copyright © 2008 by Mark Damon Hughes | Email Feedback | [RSS 2.0]