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) Advanced Objective-C Categories

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

How do I make my files the same as shown in the video?

How do I make my files the same as shown in the video? Here is what mine look like:

alt text alt text The ones shown in the video are at time 3:47, I'm using Xcode version 6.1.

1 Answer

Michael Williams
Michael Williams
13,005 Points

Hi Caleb Kleveter,

Unfortunately, I am not able to see the images that were attached in the initial question but maybe I can provide some guidance to replicate what seemed to work for me.

Right-click on "MyFirstObjectiveCProgram" --> select New File --> select the "Object-C File" icon --> hit Next --> File: "Mayhem"; File Type: "Category"; Class: NSArray --> hit Next --> finally, hit Create.

This forum post was helpful too in providing images: Creating a category in Xcode 6.0 beta

Regards, Michael Williams