home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 (1993) / nebula.bin / SourceCode / MiniExamples / FilterFunctions / SSTextField.h < prev    next >
Encoding:
Text File  |  1991-09-29  |  784 b   |  33 lines

  1.  
  2. /*
  3.  *      You may freely copy, distribute and reuse the code
  4.  *      in this example.  NeXT disclaims any warranty of
  5.  *      any kind, expressed or implied, as to its fitness
  6.  *      for any particular use.
  7.  *
  8.  *      Written by: Susan Rayl
  9.  *
  10.  *      Created 21-Mar-91
  11.  */
  12.  
  13. #import <appkit/TextField.h>
  14.  
  15. @interface SSTextField:TextField
  16. {
  17. }
  18.  
  19. /* set the custom Cell class as the Cell class for this TextField class */
  20. + initialize;
  21.  
  22. /* override to call endEditing: on the Cell so that the text filter function of 
  23.  * the fieldEditor will be reset to the original. 
  24.  */
  25. - textDidEnd:anObject endChar:(unsigned short)whyEnd;
  26.  
  27. /* override to check that when the user presses return to stop editing the 
  28.  * field, the entry is complete and correct.
  29.  */
  30. - textWillEnd:textObject;
  31.  
  32. @end
  33.