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 Objective-C Basics (Retired) Introduction to Objective-C From Structs to Objects

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

What 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
Stone Preston
42,016 Points

he 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.

Chris K
Chris K
7,425 Points

Why is he switching from interface to implementation?

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Okay 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?