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 Inheritance

Blaine Fallis
Blaine Fallis
2,449 Points

I am working through Stage 4 Into to Objective-C - the video on inheritance. It's unclear at 5:58 what file he's in

I'd like to see and study a final version of the files he's creating. I did have a successful build but when running there's a breakpoint at NSLog(@"shape area %f", [shape area]); and I get lldb. Overall I'm gradually getting the point but what was throwing me was in the video he changed files to work on circle.m but the left column still shows circle.h highlighted and it's hard to know for sure what file he's in at that point.

3 Answers

Jonathan Fernandez
Jonathan Fernandez
8,325 Points

Hi Blaine, what he did was use a shortcut key to move from circle.h to circle.m. The shortcut key is [control]+[command]+[up/down arrow keys]. This shortcut allows you to quickly change from a .h to a .m file or vice versa.

Using this shortcut key does not change the highlighted file on the left column in Xcode even though it really changes the file location you are really working with.

Blaine Fallis
Blaine Fallis
2,449 Points

Thanks :) Since it is a video though, it should be taught as if people will have to rely on what they see, or if such a shortcut is used why not mention it?

Jason Anderson
Jason Anderson
472 Points

This aspect of the course has tripped me up as well. He's stopped commenting on what he's doing from memory and confusing alot of us users.

This one had me going for awhile as well, until I noticed the name in the titlebar change from Circle.h to Circle.m @ 05:45 of the video. Lesson learned. From now on I will follow the headings in the titlebar to avoid any confusion.