• 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
Trigger nextkeyview based on NSTextField input length
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trigger nextkeyview based on NSTextField input length


  • Subject: Trigger nextkeyview based on NSTextField input length
  • From: Jaime Magiera <email@hidden>
  • Date: Fri, 17 May 2013 22:02:21 -0400

Hello folks,

I'm writing a license key input window. The license key is broken into four parts, separated by "-". I've created four NSTextFields for each component of the key to aid typing and identification (e.g. NSTextField1 - NSTextField2 - NSTextField3 - NSTextField4 ). The textfields utilize a NSFormatter subclass.

What is the most appropriate way to trigger nextkeyview after x number of characters in the textfields? I'd like for the user to get forwarded to the next textfield after typing the appropriate number of characters in the current textfield. This is a common practice in license key windows.

Should I put it [[inputField window ] selectNextKeyView:self] in the formatter subclass? Do it in the window controller?

thanks for any thoughts,

Jaime Magiera

Sensory Research, Inc.
http://www.sensoryresearch.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trigger nextkeyview based on NSTextField input length
      • From: Lee Ann Rucker <email@hidden>
    • Re: Trigger nextkeyview based on NSTextField input length
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: [SOLVED] SecTrustEvaluate() failing with kSecTrustResultRecoverableTrustFailure
  • Next by Date: Re: Trigger nextkeyview based on NSTextField input length
  • Previous by thread: NSPredicate on sub array items?
  • Next by thread: Re: Trigger nextkeyview based on NSTextField input length
  • Index(es):
    • Date
    • Thread