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 trialCaleb Kleveter
Treehouse Moderator 37,862 PointsWhat did Mr. Turner do in this video?
I'm at the part in this video where Mr. Turner creates an implementation for the seters and geters but I can't tell what he is doing.
Thank you for any help.
2 Answers
Stone Preston
42,016 Pointshe is switching from the interface to the implementation files using the command + control + up/down arrow keyboard short cut.
you can switch to the implementation file manually by selecting it in the file tree.
its tricky because when you use that shortcut to switch between files, the file tree doesnt update to show that you are on the new file you switched to.
Caleb Kleveter
Treehouse Moderator 37,862 PointsOkay that makes sense, I got it fixed; but I can't figure out whats wrong with this code:
import <Cocoa/Cocoa.h>
import "Sphere class.h"
int main() { Sphere *ball = [[Sphere alloc]init];
[ball setradius:25];
NSLog(@"ball radius %f", [ball radius]);
return 0;
}
I got a warning saying that the Sphere and the ball where undeclared (first use in this function).
What do I do?
Chris K
7,425 PointsChris K
7,425 PointsWhy is he switching from interface to implementation?