XCode version 6.0.1 Differences with book

If this is wrong for any reason, please post quickly as I am moving ahead with this chapter and it’s challenges. Thank you.

1- if you have not already noticed we are now choosing “Objective-C” and NOT “Foundation” in the "Choose options for your new project window.
2 - Create the new class by selecting File -> New -> File
3 - From the OSX section select “Source” and choose the "“Cocoa Class” template
4 - Name the class “BNRPerson” and make it a subclass of NSObject. Make sure the Language is Objective-C
5 - Click Next. Finally make sure the BMITime target is checked and then click Create.

So far so good for me. BNRPerson.h and BNRPerson.m have been created

BNRPerson.h

[code]//
// BNRPerson.h
// BMITime
//
// Created by Richard Pereira1 on 9/24/14.
// Copyright © 2014 BIg Nerd Ranch. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BNRPerson : NSObject

@end[/code]

BNRPerson.m

[code]//
// BNRPerson.m
// BMITime
//
// Created by Richard Pereira1 on 9/24/14.
// Copyright © 2014 BIg Nerd Ranch. All rights reserved.
//

#import “BNRPerson.h”

@implementation BNRPerson

@end
[/code]

i see the BNRPerson.h and the BNRPerson.m files but where is the main.m located?

I can’t find it either. Is the above setup right for XCode 6.0.1?

I have XCode 6.1 and I can’t even get this chapter started…

I’m thinking that I have to select ‘cocoa framework’ but I’m not sure.


Actually, I’m wrong, because the cocoa framework project doesn’t have a BNRPerson.m file.

When you create the new project, under OS X choose Command Line Tool.

Then you should see main.m in a folder matching the project name.

Go to File -> New -> File… Under OS X choose Cocoa Class and type a class name, Subclass of NSObject, Language: Objective-C. Click Next. Make sure your project name is checked under Targets and click Create.

http://mikepolinske.info/screenshot.html

The linked screen shot shows a project I created called Sample with a class called MPClass.

Hope this helps.