🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Palette for error checking

#646
From: Don McGregor
Date: Mon, 13 Apr 1992 03:48
20 lines
1539 bytes
I've written subclasses of Form and FormCell that allow data entry  
validation.  They're in the form of an IB palette, so you can just drag the  
Form over from IB and drop it into your app.  Then you can click on a  
specific field within the form and select from a scrolling list of entry  
types (integers, positive doubles, non-negative floats, SSN, etc).

When compiled into the app and run, field entry that doesn't fit the profile  
will cause a beep when the user attempts to move to another field.

Source code is included, so you can modify it if you like.  Or you can tear  
it apart and figure out how to write palettes.

Right now they're on cs.orst.edu and sonata.cc.purdue in the submissions  
directory.  They'll eventually move to the 2.0 source directories, I  
imagine.

--
Don McGregor             | California danger signs: you own more pairs of 
mcgredo@bluto.ie.orst.edu| shorts than you do long pants.
Technical Details
Message-ID: <1992Apr13.034826.18099@talon.ucs.orst.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!wupost!spool.mu.edu!umn.edu!orstnews!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!wupost!spool.mu.edu!umn.edu!orstnews!usenet
From: mcgredo@bluto.ie.orst.edu (Don McGregor)
Newsgroups: comp.sys.next.programmer
Subject: Palette for error checking
Keywords: Form, entry validation, palette
Message-ID: <1992Apr13.034826.18099@talon.ucs.orst.edu>
Date: 13 Apr 92 03:48:26 GMT
Article-I.D.: talon.1992Apr13.034826.18099
Sender: usenet@talon.ucs.orst.edu (Usenet News admin)
Reply-To: mcgredo@bluto.ie.orst.edu
Organization: Oregon State University - Univ. Computing Services
Lines: 20
Nntp-Posting-Host: bluto.ie.orst.edu