Xcode5 maybe?


#1

Just bought my first Mac and started your book. Same day XCODE 5 was released. Immediately saw differences in the pictures but was hoping it wasn’t that different. Using your newest book.

I am on page 22-23.

So my RandomController.h class looks like…
//
// RandomController.h
// Random
//
// Created by Derrell Gore on 9/19/13.
// Copyright © 2013 Derrell Gore. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface RandomController : NSObject {
IBOutlet NSTextField *textField;
}

  • (IBAction)seed:(id)sender;
  • (IBAction)generate:(id)sender;
    @end

My Random Controller.m looks like…

//
// RandomController.m
// Random
//
// Created by Derrell Gore on 9/19/13.
// Copyright © 2013 Derrell Gore. All rights reserved.
//

#import “RandomController.h”

@implementation RandomController

@end

I created my instance and made my connections. I m getting the following two errors.

//
// RandomController.m
// Random
//
// Created by Derrell Gore on 9/19/13.
// Copyright © 2013 Derrell Gore. All rights reserved.
//

#import “RandomController.h”

@implementation RandomController Method definition for ‘seed.’ not found

@end

AND

//
// RandomController.m
// Random
//
// Created by Derrell Gore on 9/19/13.
// Copyright © 2013 Derrell Gore. All rights reserved.
//

#import “RandomController.h”

@implementation RandomController Method definition for ‘generate.’ not found

@end

When the book says to ‘Save RandomController.h.’ on page 22…I am doing FILE\SAVE…is this correct or am I missing something.

I am a .net programmer by trade but do feel like I am sinking fast on the first chapter here. Is this an XCODE5 issue?

I copy/pasted the code for RandomController from your book so I don’t see that this is a typing error.


#2

The obvious question: Have you defined the action methods seed: and generate:?

See page 28 (in the 4th Edition).


#3

I guess I saw the error and quit reading…what threw me off was the paragraph about Identity Inspector on page 22. I was right along there when I saw the error.

Thanks