• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: firstResponder and multiple NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: firstResponder and multiple NSTextFields
      • From: Michael Clark <email@hidden>
References: 
 >Re: firstResponder and multiple NSTextFields (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Problem with ABAddressBook "disappearing" me person
  • Next by Date: RE: Multiple instances of an app open?
  • Previous by thread: Re: firstResponder and multiple NSTextFields
  • Next by thread: Re: firstResponder and multiple NSTextFields
  • Index(es):
    • Date
    • Thread