home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 (1993) / nebula.bin / SourceCode / MiniExamples / FilterFunctions / Filters.app / Filters.nib (.txt) < prev    next >
Encoding:
NeXT TypedStream Data  |  1991-09-29  |  6.8 KB  |  151 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [885c]
  8. typedstream
  9.     HashTable
  10. Object
  11. DateTextField
  12. HeaderClass
  13. %%%%i@@
  14.     TextField
  15. textnib
  16. DateTFCell
  17. TextFieldCell
  18. SSTextField
  19. FirstResponder
  20. firstnib
  21. checkSpelling:
  22. alignSelCenter:
  23.     unscript:
  24. pasteFont:
  25. runPageLayout:
  26. superscript:
  27. copyRuler:
  28.     copyFont:
  29. selectAll:
  30. pasteRuler:
  31. toggleRuler:
  32. showGuessPanel:
  33. alignSelLeft:
  34. printPSCode:
  35. paste:
  36. performClose:
  37. arrangeInFront:
  38. subscript:
  39. copy:
  40. alignSelRight:
  41. delete:
  42. orderFrontColorPanel:
  43. underline:
  44. performMiniaturize:
  45. TimeTextField
  46. NameTextField
  47. FilterTextCell
  48. TimeTFCell
  49. SSTFCell
  50. [5956c]
  51. typedstream
  52.     HashTable
  53. Object
  54. NibData
  55. @@@@s
  56. Storage
  57. {*@@}
  58.     [37{*@@}]
  59. File's Owner
  60. CustomObject
  61. Application
  62. MainMenu
  63. MenuTemplate
  64. *@*@ccc
  65. Filters
  66. Matrix
  67. Control
  68.     Responder
  69. @:@iiii
  70. MenuCell
  71. ButtonCell
  72. ActionCell
  73. Info...
  74.     Helvetica
  75. Paste
  76. Select All
  77. ff@@#::s
  78. submenuAction:
  79. Bitmap
  80.     menuArrow
  81. MyWindow
  82. WindowTemplate
  83. iiii***@s@
  84. Filter Functions
  85. Window
  86.     TextField
  87. TextFieldCell
  88. Testing Text Filter Functions
  89. Helvetica-Bold
  90. CustomView
  91. NameTextField
  92. DateTextField
  93. TimeTextField
  94. SSTextField
  95. (no more than 20 characters)
  96. Title
  97. (DD/MM/YY)
  98. (HH:MM)
  99. Social Security Number
  100. (123-45-6789)
  101. Field2
  102. View1
  103. View2
  104. Field4
  105. Field5
  106. Field6
  107. Field
  108. Field3
  109. Field7
  110. Field1
  111. Field8
  112. Panel
  113. Text Filter Functions
  114. Version 1.0
  115. by Susan Rayl
  116. 9Copyright 1990, NeXT Computer, Inc.  All Rights Reserved.>
  117. ScrollView
  118. ClipView
  119. ciifffcfffs
  120. [1860c]{\rtf0\ansi{\fonttbl\f1\fnil Times-Roman;\f0\fswiss Helvetica;}
  121. \margl40
  122. \margr40
  123. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\b0\i0\ul0\fs36 Explanatory Notes
  124. \fs28 \
  125. A text filter function is the input filter for the Text object which allows the programmer to monitor (and control), the characters entered into a Text object of TextField object. \
  126. As Concepts says, \
  127. \fs24 Unlike a character filter, which only receives the individual character that's entered, a text filter additionally receives information about the state of the Text object.  Based on this information, the text filter can change a number of variables including the content of the entered or existing text and the location of the insertion point.\
  128. \fs28 In this application, different text filter functions are attached to the fieldEditor of the Window depending on which TextField is the firstResponder.  (See chapter 9 of Concepts for details on the fieldEditor and on filter functions.)  The application implements the text filtering in three different ways.\
  129.     For the name TextField, the filter function is set when the field becomes the firstResponder (after a mouse click or a TAb into the field).  This works but isn't extremely elegant.  Look in the code for the NameTextField class for details.\
  130.     For the date TextField, the filter function is set by a custom Cell class when that cell is notified that the field is being edited.  This solution is symmetrical and preferred (by me, at least).  Again, look in the source for the DateTextField class.\
  131.     For the time and social security number TextFields, the filter function is also set by a custom Cell class.  However, an abstract Cell class has been implemented, gathering filter-setting functionality in one encapsulated, reusable class.  Much better.  Read the source.\
  132. NXCursor
  133. NXImage
  134. NXibeam
  135. Scroller
  136. _doScroller:
  137. @@@ffs]
  138. VersionNumber;0)C0$F0'K0
  139. ScrollingTextP0
  140. Font Manager
  141. FontManager
  142. {i*@@@}
  143. [11{i*@@@}]
  144. hide:
  145. terminate:
  146. copy:
  147. paste:
  148. selectAll:
  149. makeKeyAndOrderFront:
  150. nextText
  151.