Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Flowing text between text fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flowing text between text fields



On 31 Jan 2009, at 3:19 PM, John Murphy wrote:

On many applications, when you enter in a serial number, there are several text fields in a row, and as the user enters in the serial number the cursor automatically jumps to the next text field at the appropriate time.
I am assuming that this is a long string being displayed across several text fields. How is this done?

I assume it is not done that way. If I were attempting this (I haven't done it), I'd start with NSControl's controlTextDidChange: delegate method (or NSControlTextDidChangeNotification notification) and jump whenever a field holds the requisite number of characters after the change.


	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >


_______________________________________________

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


References: 
 >Flowing text between text fields (From: John Murphy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.