home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / DatabaseKit / PubsDemo / English.lproj / PubsDemo.nib / data.nib (.txt) < prev   
Encoding:
NeXT TypedStream Data  |  1994-07-19  |  8.4 KB  |  207 lines

  1. typedstream
  2. IBObjectData
  3. Object
  4. CustomObject
  5. Application
  6. Matrix
  7. Control
  8.     Responder
  9. [11@]
  10. Button
  11. ButtonCell
  12. ActionCell
  13. Helvetica-Bold
  14.     Helvetica
  15. Delete
  16. @:@iiii
  17.     Ascending
  18. NXImage
  19. NXradio
  20. NXradioH
  21. Descending
  22. ff@@#::s
  23. Radio
  24.     TextField
  25. TextFieldCell
  26. Sort Order:
  27. *Select Authors in:
  28. (Null means select all)
  29. Select
  30. NXreturnSign
  31. State:
  32. DBTableView
  33. ScrollView
  34. ClipView
  35. DBGridView
  36. i@@@@@
  37. DBLayout
  38. @@ffcii
  39. DBTableVector
  40. iiff*@@@
  41. lastName
  42. DBEditableFormatter
  43. DBFormatter
  44.     firstName
  45. yearToDateSales
  46. DBHeadingView
  47. DBHeadingCell
  48. Scroller
  49. _doScroller:
  50. @@@ffs
  51. i@@@@@::
  52. Insert
  53. FormCell
  54.     lastName:
  55. firstName:
  56.     authorID:
  57. address:
  58. city:
  59. state:
  60. zipCode:
  61. phone:
  62.     contract:
  63. Field:
  64. MenuCell
  65. MenuTemplate
  66. *@*@ccc
  67. PubsDemo
  68.     README...'
  69. Hide'
  70. Quit'
  71. Copy'
  72. Paste'
  73. Select All'
  74. submenuAction:
  75. NXmenuArrow
  76. NXCursor
  77. NXibeam
  78. ciifffcfffs
  79. [3818c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fnil Times-Roman;}
  80. \margl40
  81. \margr40
  82. {\colortbl;\red0\green0\blue0;}
  83. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 PubsDemo\
  84. \b0\fs24 by Mai Nguyen, NeXT Developer Support Team\
  85. \b\fs28 Overview
  86. \b0\fs24 \
  87. In order to run this example, you need to have a SYBASE server with a pubs database installed.  The pubs database is a sample database provided with the SYBASE limited server package.  The  
  88. \b SybaseDemo.dbmodela
  89. \b0  from /NextDeveloper/Examples/DatabaseKit/models  is used to establish the proper connections between the database model and the Database Kit UI Objects.\
  90. The purpose of this example is to show you how to quickly put together a simple database application without much programming by taking advantage of the Database Kit UI Objects such as DBTableView and DBModule.\
  91. After you are properly connected to the Sybase server, you can perform operations such as 
  92. \b Select
  93. \b0 , 
  94. \b Insert
  95. \b0 , 
  96. \b Save
  97. \b0  or 
  98. \b Delete
  99. \b0 .  Note that an 
  100. \b Insert
  101. \b0  or 
  102. \b Delete
  103. \b0  won't take effect in the database until a 
  104. \b Save
  105. \b0  operation is performed.  All operations such as 
  106. \b Save
  107. \b0 , 
  108. \b Delete
  109. \b0  and 
  110. \b Select
  111. \b0  are almost done without any coding. For simplicity's sake, there is no verification of the data entered via the FormCells for a 
  112. \b Save
  113. \b0  or 
  114. \b Insert
  115. \b0  operation.\
  116. \b\fs28\fc1\cf1 Preferences Setting\
  117. \b0\fs24 \
  118. You can retrieve the data in ascending or descending order by selecting the Sort Order with the Radio buttons. Note that the tag values of these Radio Buttons correspond to the actual constants defined in dbkit/enums.h.\
  119. You can either select all records by default, or qualify them by state of residence by entering the proper state into the textfield.\
  120. \b\fs28 Program Organization
  121. \b0\fs24 \
  122. \b Major Classes in the Application
  123. \b0 \
  124. \pard\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-1900\li1900\fc1\cf1 Controller    A general manager object.  A subclass of the Object class.  Performs miscellaneous initialzations and operations such as  inserting, selecting and sorting.\
  125. \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
  126. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b\fc1\cf1 Other Peculiarities
  127. \b0 \
  128. The primary key for inserting a new record is the social security number. It is not possible to insert a new record with a duplicate id (or social security number). \
  129. \b\fs28 Topics Of Interest\
  130. \b0\fs24 \
  131. The purpose of this example is to show you some simple examples of the usage of the DBKit UI Objects:\
  132. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\b\fc1\cf1 \
  133. - How to extract the important DBKit elements from the UI Objects (DBDatabase, DBFetchGroup, etc.): 
  134. \b0 \
  135. See the method 
  136. \b appDidInit: 
  137. \b0 in the file Controller.m.\
  138. \f1\fs28 \
  139. \f0\b\fs24 - How to change the sort order when retrieving records
  140. \b0 \
  141. See the method 
  142. \b changeRetrieveOrder: 
  143. \b0 and 
  144. \b setRetrieveOrder: 
  145. \b0 in the file Controller.m.\
  146. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
  147. \b How to qualify a select operation using DBQualifier\
  148. \b0 See the method 
  149. \b buildSelectQualifier:
  150. \b0  in the file Controller.m\
  151. \b How to insert a new record to a database via the DBFetchGroup object
  152. \b0 \
  153. See the delegate method 
  154. \b fetchGroup:didInsertRecordAt: 
  155. \b0  in the file Controller.m\
  156. \b\fs28 Change History\
  157. \pard\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0\fs24\fi-1900\li1900\fc1\cf1 July 1993    Removed the
  158. \b  evaluateSQL: 
  159. \b0 method. To execute stored procedures, please refer to the Evaluator example.
  160. WindowTemplate
  161. iiii***@s@
  162. Authors Table
  163. Window
  164. README
  165. PanelG
  166. DBModuleTemplate
  167. DBModule
  168. SybaseDemo
  169. Author
  170. Controller
  171. View1
  172. File's Owner
  173. RMPanel
  174. MyWindow
  175. MainMenu
  176. [41@]
  177. IBControlConnector
  178. IBConnector
  179. copy:
  180. paste:
  181. selectAll:
  182. terminate:
  183. hide:
  184. IBOutletConnector
  185. delegate
  186.     theWindow
  187. qualifierField
  188. select:
  189. changeRetrieveOrder:
  190. DBTableConnector
  191. DBConnector
  192. dbModule
  193. saveChanges:
  194. deleteRecord:
  195. dbTableView
  196. performClick:
  197. orderFront:
  198. authorID
  199. address
  200. state
  201. zipCode
  202. phone
  203. contract
  204. formMatrix
  205. takeValueFrom:
  206. insert:
  207.