Re: Currency Converter (tyler, you there ?)
Re: Currency Converter (tyler, you there ?)
- Subject: Re: Currency Converter (tyler, you there ?)
- From: Ricky Sharp <email@hidden>
- Date: Sun, 28 Oct 2001 11:21:06 -0600
On Sunday, October 28, 2001, at 10:21 AM, Irwin Poche wrote:
In the July archives there's a posting from "tyler" asking why a line of
Currency Converter only worked when the button Convert is clicked, as
opposed to pressing Return...
[rateField selectText:self];
I am having exactly the same problem and do not find a solution in the
archives.
I know it's not a coding goof on mine or tyler's part. I've downloaded
the
O'Reilly Learning Cocoa examples which includes Currency Converter and it
exhibits exactly the same symptom.
Anyone know what's going on with this?
Not sure. I can't seem to find any method like "setFocus" that could
first set the focus to the rateField.
It appears as if the Return/Enter key is being sent to the current field
that has focus and the call:
[rateField selectText: self] will do nothing if the focus is not on the
rateField.
Perhaps there's a way for the textField to not intercept return/enter (if
that's the problem)?
------------------------------------------------------------
Ricky A. Sharp Instant Interactive(tm)
Founder & President <
http://www.instantinteractive.com>
<
mailto:email@hidden>
------------------------------------------------------------