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 trialEddie Glenn
2,712 Points"Let's create an implementation for these two setters and getters."
I don't know what he is doing in Xcode at this point in the video (5:21) when the code collapses on the screen and he "creates an implementation". Any ideas?
3 Answers
Jorge Septien
20,339 PointsHe is just moving from the header file .h to the implementation file .m. It looks strange the way it switches between the two files but I believe he is just copying and pasting the declarations and replacing the semicolons with the curly braces. Hope that makes more sense!
Eddie Glenn
2,712 PointsI see. That's helpful, thank you.
I thought you had to click on the .m or .h links in the panel to the left to make that switch. Is there a keyboard shortcut that I should use?
Also, it looks like his switch from .h to .m is reflected in the location bar towards the top of the screen, but the switch isn't reflected in the file location panel on the left side of the screen (and if there are other more accurate names for those panels than "file location bar" or whatever, let me know). I see he switches a couple times like that in the video. Is that significant?
Since I navigate between the different files by clicking on the panel on the left, I just want to make sure I'm going to the right place.
Jorge Septien
20,339 PointsI think the shortcut he is using is Shift + command + page up/down but clicking the files on the navigator should do the same. For the names, the one on top of the editor area is called jump bar, and the left panel is called navigator.