🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #337

Re: Formcell behaviour

#337
From: Gregory H. Anderson
Date: Tue, 28 Jul 1992 22:18
30 lines
1901 bytes
In article <1992Jul27.132231.19873@monu6.cc.monash.edu.au>  
ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:

> I have a form and one of the formCells connected to a validateField  
method. I have a number of buttons which are enabled only if the fields  
are valid.  When I type in the formcell (not pressing return) or click  
into another cell or even _OUTSIDE_ the form the action is not sent.  
WHY!!!!!.
> 
Because this object is braindead.  8^)

Seriously, only an actual <CR> forces the action method. This is a Bad  
Thing, because I have watched many users not bother to hit any field  
movement key after they finish typing a field. If the next thing they hit  
is the Save button, the last field never gets a chance to validate.

For what you want, the matrix which contains the FormCells must have a  
text delegate, and then you must use the delegate methods (textWillEnd:,  
textDidGetKeys:, etc.) to validate as they type. Even with this procedure,  
the delegate methods seems to jump off at different points depending on  
whether the keyboard (Tab, Shift-Tab, etc.) or the mouse is used to  
trigger the next field. The bottom line is, only textDidGetKeys: and  
textDidEnd: are reliable indicators of keystrokes and field movement under  
all circumstances.

--
Gregory H. Anderson          | "We're very tolerant around here,
Benevolent Dictator-for-Life |  being only amateurs ourselves."
Anderson Financial Systems   | - Tortoise (Godel, Escher, Bach)
greg@afs.com  (Nextmail OK)  | 
Technical Details
Message-ID: <1992Jul28.221831.365@afs.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!greg
References: <1992Jul27.132231.19873@monu6.cc.monash.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!greg
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: Formcell behaviour
Message-ID: <1992Jul28.221831.365@afs.com>
Sender: greg@afs.com
Reply-To: greg@afs.com
References: <1992Jul27.132231.19873@monu6.cc.monash.edu.au>
Date: Tue, 28 Jul 1992 22:18:31 GMT
Lines: 30