Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Jerome Garot
Jerome Garot
2,886 Points

When to synthesize

I am doing the blog read app, and in the later stages Amit stops @synthesizing his properties.

He only does it with the first 2 he makes, but he stops this in later videos, without any problems.

Why does he do this, and when should I synthesize and not synthesize?

BTW, I have been synthesizing every property because it just seems the right thing to do.

Thanks.

Jerome

2 Answers

Nathan F.
Nathan F.
30,773 Points

There was on a thread here on the forums that may help you. Basically, the earlier videos were made before a new version of Xcode was released. In the new version, you no longer need to synthesize your properties--Xcode handles all that for you.

Jerome Garot
Jerome Garot
2,886 Points

Thanks that makes sense