home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / xView / xView.nib (.txt) < prev    next >
NeXT TypedStream Data  |  1993-01-19  |  10KB  |  195 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [640c]
  8. typedstream
  9.     HashTable
  10. Object
  11. FirstResponder
  12. HeaderClass
  13. %%%%i@@
  14. firstnib
  15. checkSpelling:
  16. alignSelCenter:
  17.     unscript:
  18. pasteFont:
  19. runPageLayout:
  20. superscript:
  21. copyRuler:
  22.     copyFont:
  23. selectAll:
  24. pasteRuler:
  25. toggleRuler:
  26. showGuessPanel:
  27. alignSelLeft:
  28. paste:
  29. performClose:
  30. arrangeInFront:
  31. subscript:
  32. copy:
  33. alignSelRight:
  34. delete:
  35. orderFrontColorPanel:
  36. underline:
  37. performMiniaturize:
  38. xView
  39. viewnib
  40. xColorWell
  41. backColorWell
  42. widthScroller
  43. changeMade:
  44. [9242c]
  45. typedstream
  46.     HashTable
  47. Object
  48. NXImage
  49. NXBitmapImageRep
  50. NXImageRep
  51. iissss@@
  52. [1024c]
  53. DDDDDEEUDDDDDD
  54. UUUUUUUUU
  55. DDDTUU
  56. TTDDDO
  57. UUUUUUUUUUQ
  58. DDEUYY
  59. UUDDDO
  60. UUUUUUUUUUU
  61. UUUUeeeeeW
  62. UUVVfffff]W
  63. UUUef
  64. UUVfj
  65. f_UU_
  66. fUUU_
  67. eeUU_
  68. UUVfjj
  69. ffUUUU
  70. QUUUeeffeeUUUQ_
  71. UUUUUVUUUUUU
  72. QUUUUUUUUUUQP
  73. DDDUUYY
  74. UUDDDDO
  75. UUUUUUUUU
  76. DDDDTUU
  77. TTTDDDO
  78. QUUUUUUUUQ
  79. NibData
  80. @@@@s
  81. Storage
  82. {*@@}
  83.     [39{*@@}]
  84. File's Owner
  85. CustomObject
  86. Application
  87. MainMenu
  88. MenuTemplate
  89. *@*@ccc
  90. xView
  91. Matrix
  92. Control
  93.     Responder
  94. @:@iiii
  95. MenuCell
  96. ButtonCell
  97. ActionCell
  98.     Helvetica
  99. Info Panel...
  100. Help...
  101. ff@@#::s
  102. submenuAction:
  103. Bitmap
  104.     menuArrow
  105. Paste
  106. Select All
  107. Windows
  108. Drawing Window
  109.     Colors...
  110. Control Panel
  111. MenuItem
  112. MyWindow
  113. WindowTemplate
  114. iiii***@s@
  115. Window
  116. CustomView
  117. Panel
  118. ScrollView
  119. ClipView
  120. ciifffcfffs
  121. [2576c]{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fswiss Helvetica;\f2\fmodern Courier;}
  122. \margl40
  123. \margr40
  124. {\colortbl\red0\green0\blue0;}
  125. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800\f0\b\i0\ul0\fs36 "x" View
  126. \f1\b0\fs24 \
  127. This is a quick demo to get you started with using the View class.  While there are many fun things you can do with a view (rotate, scale, translate), I have not attempted to show them here.  For a more complete example see VisibleView by Randy Nelson, or hack this program up to meet your educational needs.\
  128. \f0\fs36 Use:\
  129. \f1\fs24     \
  130.     You can start this program from either the shell, or Workspace Manager.  However, because of the copious amount of printfs, I would 
  131. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 reccomeend
  132. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800  strongly that you run it from a Terminal window.\
  133. \fc0     \
  134.     When started, you will see the drawing window.  If you wish to manipulate the drawing, use the control panel, which you can access from the Windows menu.   The use of the three controls should be obvious.\
  135. \f0\fs36 Duties:\
  136. \f1\fs24 \
  137.     A view can be thought of as a rectangular portion of your window that you may draw in.  You do not actively draw into this view, but rather your view is told when it needs to draw.  This takes place, by another object, or perhaps the window server, calling 
  138. \f2 [yourView display]. 
  139. \f1 This performs a number of duties, including saving graphic states, and telling subviews to draw themselves.\
  140. \f0\fs36 Words of Advice:\
  141. \f1\fs24 \
  142. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0     Always call display, never call drawSelf::\
  143.     There is more than one way to draw from within drawSelf::.  This example uses a psw file, to simplify matters.  You could instead use single operator C functions like PSsetlinewidth.\
  144.     You can use the arguments to drawSelf to optimize drawing.  This is especially true if your View appears within a ScrollView, or will otherwise be clipped.\
  145. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800\fc0     To reduce the amount of PostScript sent to the server, you can define functions which are downloaded once. (perhaps in a more advanced example)\
  146.     The View is updated constantly thanks to 
  147. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 [theColorPanel setContinuous:YES]
  148. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800\fc0 \
  149. NXCursor
  150. NXibeam
  151. Scroller
  152. _doScroller:
  153. @@@ffs
  154. ScrollingText
  155. Info Panel
  156.     TextField
  157. TextFieldCell
  158. Title
  159. 'Part of the "Tour of Appkit" Collection'
  160. "x" View
  161. Times-Roman$
  162. tKarl Kraft, 3949 Woodhill Ave, Las Vegas, NV 89121,
  163. Vocie (702) 458 4997    :    FAX (702) 458 6704    :    karl@bodi.portal.com
  164. Button
  165. This program is part of a combined effort to produce examples of how to program using the NeXT Appkit.  If you would like more information about this effort, please contact me by one of the methods below.
  166. Field24
  167. Field"
  168. Field1)
  169. Field3/
  170. Box1B
  171. Controls
  172. NXColorWell
  173. Background
  174. X Color
  175. Slider
  176. SliderCell
  177.     Pen Width
  178.     ColorWelld`
  179. XRr\X
  180. Slider2kg
  181. {i*@@@}
  182. [18{i*@@@}]
  183. hide:
  184. terminate:
  185. copy:
  186. paste:
  187. selectAll:
  188. makeKeyAndOrderFront:
  189. widthScroller
  190. backColorWell
  191. xColorWell
  192. changeMade:k
  193. orderFrontColorPanel:
  194. delegate
  195.