March 7, 2011 11:04:25 AM
Subject: Re: Setting a delegate on a UITextField
On Mar 7, 2011, at 9:54 AM, Jon Sigman wrote:
> On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
>
> > The "Return" key invokes textFieldShouldReturn: and does *not*
> > automatically
&g
On Mar 7, 2011, at 9:54 AM, Jon Sigman wrote:
> On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
>
> > The "Return" key invokes textFieldShouldReturn: and does *not*
> > automatically resign first responder ...
>
> Ah! That is the part I had been overlooking. textFieldShouldReturn is the
On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
> The "Return" key invokes textFieldShouldReturn: and does *not* automatically
>resign first responder ...
Ah! That is the part I had been overlooking. textFieldShouldReturn is the
perfect place to validate the input.
However, now that I've
On Mon, 07 Mar 2011 09:02:36 -0800 (PST), Jon Sigman said:
>On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote:
>> One possible approach on iOS is to implement textFieldShouldEndEditing, and
>>return NO and put up an alert if there's a problem. Another is just to make
>>the
>>change yourself
On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote:
> One possible approach on iOS is to implement textFieldShouldEndEditing, and
>return NO and put up an alert if there's a problem. Another is just to make
>the
>change yourself in textFieldDidEndEditing. See the section entitled
>"Validatin
t;to your needs.
>
>From: Jon Sigman
>To: Cocoa Developers
>Sent: Fri, March 4, 2011 10:29:23 AM
>Subject: Re: Setting a delegate on a UITextField
>
>Okay, part II:
>
>Is there a way to allow only a certain number of characters in a UITextField?
>Shoul
> Message: 8
> Date: Thu, 03 Mar 2011 18:29:23 -0800 (PST)
> From: Jon Sigman
> Subject: Re: Setting a delegate on a UITextField
> To: Cocoa Developers
> Message-ID: <977310.3842...@web31911.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> O
Sent: Fri, March 4, 2011 10:29:23 AM
Subject: Re: Setting a delegate on a UITextField
Okay, part II:
Is there a way to allow only a certain number of characters in a UITextField?
Should this be done in the -textFieldDidEndEditing delegate callback, with an
alert to the user, or just truncating the
Okay, part II:
Is there a way to allow only a certain number of characters in a UITextField?
Should this be done in the -textFieldDidEndEditing delegate callback, with an
alert to the user, or just truncating the field, or ...?
-Jon
___
Coc
On Thu, March 3, 2011 2:19:30 PM Phillip Mills wrote:
> First question: Is your 'nameTextField' truly non-nil when you set its
>delegate?
Good call. It was being set before the -viewDidLoad method got invoked. It all
works now!
> Second question: What do you define as "finished editing"?
Wh
On 2011-03-03, at 5:01 PM, Jon Sigman wrote:
>
> What am I overlooking?
First question: Is your 'nameTextField' truly non-nil when you set its delegate?
Second question: What do you define as "finished editing"?
___
Cocoa-dev mailing list (Cocoa-de
11 matches
Mail list logo