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

How does he work XCode?

His keyboard tricks are so secretive. He doesn't teach us how to use them, and especially, when I try to type in the code, I'm typing it into my project without knowing what I just typed. Can someone help out?

I don't get how does it switch from the .h to .m files in XCode. He doesn't tell us.

3 Answers

Rodrigo Chousal
Rodrigo Chousal
16,009 Points

Hey Jacky!

What I do is I pause the video whenever I need to (this is pretty frequent since the teachers are kind of fast). When I pause, I switch over to Xcode and type in the code. After I've typed it in, I stop and read it a few times to understand it. About his keyboard tricks, you can find all of them inside Xcode (top bar) > Preferences > Key Bindings.

Hope this helps!

Ahh, gotcha. Thanks Rodrigo!

Michael Liquori
Michael Liquori
8,131 Points

There are multiple ways to navigate files in XCode but for me the most straightforward is to use the Project Navigator.

It is the first option in the left panel. Toggle on the left pane with ⌘0 and then ⌘1 to select Project Navigator if not already selected.

Here are some good resources on this:

http://nshipster.com/xcode-key-bindings-and-gestures/ http://www.dummies.com/how-to/content/overview-of-the-project-navigator-in-xcode.html

Michael Liquori
Michael Liquori
8,131 Points

You can option click on anything to pull up the Apple documentation that explains that code.

I recommend just going along with the flow in the videos, (because they go fast), then go back and ask yourself if you understand what each piece does, read up on it if you don't.