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
Gary Luce
7,153 Points@synthesize in the CrystallBall app
Hello,
There is something I don't get in the CrystallBall app. If I comment out the line
``` @synthesize predictions = _predictions;
in the THCrystallBall.m file, the app still works as intended. Any reason why?
Thanks!
2 Answers
Holger Liesegang
50,595 PointsHi Gary,
Since Xcode 4.4 and LLVM Compiler 4.0 the @synthesize directive is no longer required as it will be provided by default. That means in most cases you now only need the @property and the compiler takes care of everything else for you.
Kind Regards Holger
Gary Luce
7,153 PointsHi Holger, thank you very much for this. That's a great answer.