title: Getting a "Method Definition not found error" and don't know why
body: <p>I am going through Apple's Programming with Objective-C and doing the very simple exercises along the way. For some reason I am getting an error saying that a <code>Method Definition cannot be found</code>. I've checked for spelling and caps and the method is both in the <strong>.h</strong> and <strong>.m</strong> files. Can't figure out why it's doing it.</p>
  
  <p>Specifically it is saying that the method definition for '<em>Say Something</em>' cannot be found. Here is the code:</p>
  
  <p><strong>.h</strong></p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface XYZPerson : NSObject
  
  @property NSString *firstName;
  @property NSString *lastName;
  @property NSDate *dateOfBirth;
  
  - (void)saySomething;
  - (void)sayHello;
  - (void)sayShutUp;
  - (void)sayHola;
  + (id)person;
  
  
  @end
  </code></pre>
  
  <p>and the <strong>.m</strong></p>
  
  <pre><code>#import "XYZPerson.h"
  
  @implementation XYZPerson
  
  
  - (void)saySomething:(NSString *)greeting {
      NSLog(@"%@", greeting);
  }
  
  - (void)sayHello {
  [self saySomething:@"Hello, World!"];
  }
  
  - (void)sayHola {
  [self saySomething:@"Hola, Amigos!"];
  }
  - (void)sayShutUp {
  [self saySomething:@"Shut up!"];
  }
  + (id)person {
  return [[self alloc]init];
  }
  
  
  @end
  </code></pre>