Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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