title: How to call a method in init method?
body: <p>My program looks like this:</p>
  
  <pre><code>-(id)init
  {
      if ( (self = [super init]) )
      {
          //TargetWithActions *targetActions= [[TargetWithActions alloc] init];
          [self countDownSpeed123];
      }
      return self;
  }
  -(void)countDownSpeed123
  {
      countDownSpeed = 5.0f;
  }
  @end
  </code></pre>
  
  <p>warning: 'TargetWithActions' may not respond to '-countDownSpeed123'</p>
  
  <p>I am getting the warning in this way. Where I am wrong in my program. Please explain ?
  Thank You.</p>
  
  <p>If I need to use the countDownSpeed value in another class, how can I retain the value ? How can I use in the other class? I think retain works for pointer types.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Sorry for my bad coding and negligence. I have did mistakes in my program which are very blunt.</p>
  
  <p>Thanks for answering.</p>
  
  <ol>
  <li>First: I did not declare the
  function (
  <code>-(void)countDownSpeed123;</code> )in
  interface.</li>
  <li><p>Second: I did not include the
  following in my class where I needed
  the (countDownSpeed) value.</p>
  
  <pre><code>TargetWithActions *targetActions= [[TargetWithActions alloc] init];
  [targetActions countDownSpeed123];
  </code></pre></li>
  </ol>
  
  <p>Now, I got what I need.</p>
  
  <p>Thank You.</p>