Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!amdahl!twg.com!lefty From: lefty@twg.com (David N. Schlesinger) Newsgroups: comp.sys.mac.programmer Subject: Re: Password in TextEdit field? Message-ID: <143@gollum.twg.com> Date: 10 Feb 90 21:58:44 GMT References: <669@tci.bell-atl.com> Sender: news@twg.com Distribution: comp Organization: The Wollongong Group Lines: 23 In article <669@tci.bell-atl.com> kingman@tci.bell-atl.com (Matt Kingman) writes: > Does anyone have any good ideas on how to implement a password in a > TextEdit field? Since your TextEdit field is likely to be in a dialog box, let me suggest the following. Use a filterProc to ModalDialog which will trap keyDown events, store the character the user typed into a global buffer and replace the character in the EventRecord with (for instance) an "apple" or a "diamond". Make delete wipe out the entire text entered (since the user can't see what he's entered anyway). Copy and paste can also be handled in the filterProc, if you want. Hope this helps. Lefty =========================================================================== David N. Schlesinger || "There's a word for it: words don't The Wollongong Group || mean a thing. There's a name for it; Internet: Lefty@twg.com || names make all the difference in the POTS: 415/962-7219 || world..." -- David Byrne ===========================================================================