Research, Dev, Share

Property, Synthesize and Dealloc – Code Generation

Posted in Iphone, Objective-C, Software Development by Khang Vo on November 25, 2010

This is my new generation script, mainly copied from here with some improvements to meet my needs:

– Change the dealloc to [self.variable release] instead of [self.variable dealloc];
– Change the @outlet variable to check for the “UI” prefix rather than letting it put IBOutlet everywhere or I have to use 2 scripts at the same time.
– Add some of my own into the assign list

XCode Code Generation

The second one is not a perfect solution for IBOutlet but considering that it doesn’t harm much except let some annoying IBOutlet out.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: