Calling a method in another method?
<p>I've got a delegate method which just has a bit of code in there that puts a % sign on the end of the number entered.</p>

<pre><code>- (void)textFieldDidEndEditing:(UITextField *)UItextfield {
     NSString *oldTextFieldValue = UItextfield.text;
     UItextfield.text = [NSString stringWithFormat:@"%@ %%",oldTextFieldValue];
   }
</code></pre>

<p>Could I instead of having that, have the following action</p>

<pre><code>-(IBAction)Calculate:(UITextField *)UITextfield;
{
    NSString *oldTextFieldValue = UItextfield.text;
    UItextfield.text = [NSString stringWithFormat:@"%@ %%",oldTextFieldValue];
}
</code></pre>

<p>And then in the Delegate function, call that action? Something like</p>

<pre><code>-(void)textFieldDidEndEditing:(UITextField *)UItextfield {
[self Calculate:self]
}
</code></pre>

<p>I tried that, it doesn't work. I know it'll get me to the same result but I just want to know if it can be done. I think i'm asking can a method (Calculate) be called in another method (textFieldDidEndEditing) and how.</p>
