Re: firstResponder and multiple NSTextFields
Re: firstResponder and multiple NSTextFields
- Subject: Re: firstResponder and multiple NSTextFields
- From: Brad Peterson <email@hidden>
- Date: Wed, 24 Aug 2005 16:09:46 -0700 (PDT)
Hi,
First, thank you. :)
> if([fieldEditor
> respondsToSelector:@selector(delegate)])
>
> {
> field = [fieldEditor delegate];
>
> }
> if (field == txtPartialSN1)
Ta-da! That did it! :)
>
> However, I think that is all unnecessary because I
> think you can set up your formatter to end editing
> when the correct number of digits are entered and
> you can set up the nextField to automatically move
> to the next field when editing ends.
Ok, fair enough. I do see the nextKeyView, and you're
surely right. However, I don't see how to set it up so
that the user is automatically forwarded when the max
# of characters has been reached. For that matter, I'm
not sure how to get the formatter to prohibit editing.
At the moment, I'm using the isPartialStringValid:
method, but I don't know how I'd explicitly end
editing other than to simply continue to trim any
additional characters the user might try to type
(which I already do).
It sounds like you had something more specific in
mind.
Thanks again!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden