home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Examples / DatabaseKit / PubsDemo / English.lproj / PubsDemo.nib / data.nib (.txt) < prev   
Encoding:
NeXT TypedStream Data  |  1993-03-31  |  10.3 KB  |  235 lines

  1. streamtyped
  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.     TextField
  17. TextFieldCell
  18. Sort Order:
  19. *Select Authors in:
  20. (Null means select all)
  21. Select
  22. NXImage
  23. NXreturnSign
  24. State:
  25. DBTableView
  26. ScrollView
  27. ClipView
  28. DBGridView
  29. i@@@@@
  30. DBLayout
  31. @@ffcii
  32. DBTableVector
  33. iiff*@@@
  34. lastName
  35. DBEditableFormatter
  36. DBFormatter
  37.     firstName
  38. yearToDateSales
  39. DBHeadingView
  40. DBHeadingCell
  41. Scroller
  42. _doScroller:
  43. @@@ffs
  44. i@@@@@::
  45. @:@iiii
  46. FormCell
  47.     lastName:
  48. firstName:
  49.     authorID:
  50. address:
  51. city:
  52. state:
  53. zipCode:
  54. phone:
  55.     contract:
  56. ff@@#::s
  57. Field:
  58. Insert
  59.     Ascending
  60. NXradio
  61. NXradioH
  62. Descending
  63. Radio
  64. ciifffcfffs
  65. [168c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  66. \margl40
  67. \margr40
  68. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc0\cf0 
  69. NXCursor
  70. NXibeam
  71. Enter a query here:
  72. Query Results:
  73. Evaluate
  74. SQL statement
  75. MenuCell
  76.     README...M
  77. Evaluate SQL...M
  78. EditM
  79. MenuTemplate
  80. *@*@ccc
  81. PubsDemoN
  82. CopyM
  83. PasteM
  84. Select AllM
  85. submenuAction:
  86. NXmenuArrow
  87. HideM
  88. [4396c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fnil Times-Roman;}
  89. \margl40
  90. \margr40
  91. {\colortbl;\red0\green0\blue0;}
  92. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 PubsDemo\
  93. \b0\fs24 by Mai Nguyen, NeXT Developer Support Team\
  94. \b\fs28 Overview
  95. \b0\fs24 \
  96. 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  
  97. \b SybaseDemo.dbmodela
  98. \b0  from /NextDeveloper/Examples/DatabaseKit/models  is used to establish the proper connections between the database model and the Database Kit UI Objects.\
  99. 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.\
  100. After you are properly connected to the Sybase server, you can perform operations such as 
  101. \b Select
  102. \b0 , 
  103. \b Insert
  104. \b0 , 
  105. \b Save
  106. \b0  or 
  107. \b Delete
  108. \b0 .  Note that an 
  109. \b Insert
  110. \b0  or 
  111. \b Delete
  112. \b0  won't take effect in the database until a 
  113. \b Save
  114. \b0  operation is performed.  All operations such as 
  115. \b Save
  116. \b0 , 
  117. \b Delete
  118. \b0  and 
  119. \b Select
  120. \b0  are almost done without any coding. For simplicity's sake, there is no verification of the data entered via the FormCells for a 
  121. \b Save
  122. \b0  or 
  123. \b Insert
  124. \b0  operation.\
  125. \b\fs28\fc1\cf1 Preferences Setting\
  126. \b0\fs24 \
  127. 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.\
  128. You can either select all records by default, or qualify them by state of residence by entering the proper state into the textfield.\
  129. \b\fs28 Program Organization
  130. \b0\fs24 \
  131. \b Major Classes in the Application
  132. \b0 \
  133. \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.\
  134. \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
  135. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b\fc1\cf1 Other Peculiarities
  136. \b0 \
  137. 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). \
  138. In order to load an Adaptor dynamically, you need to add the
  139. \b  OTHER_LDFLAGS
  140. \b0  definition (see the 
  141. \b Makefile.preamble
  142. \b0 ). You also need to add the
  143. \b  libdbkit_s.a
  144. \b0  library into your
  145. \b  IB.project
  146. \b0  under 
  147. \b libraries
  148. \b0  in order to use the DBKit API. \
  149. \b\fs28 Topics Of Interest\
  150. \b0\fs24 \
  151. The purpose of this example is to show you some simple examples of the usage of the DBKit UI Objects:\
  152. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\b\fc1\cf1 \
  153. - How to extract the important DBKit elements from the UI Objects (DBDatabase, DBFetchGroup, etc.): 
  154. \b0 \
  155. See the method 
  156. \b appDidInit: 
  157. \b0 in the file Controller.m.\
  158. \f1\fs28 \
  159. \f0\b\fs24 - How to change the sort order when retrieving records
  160. \b0 \
  161. See the method 
  162. \b changeRetrieveOrder: 
  163. \b0 and 
  164. \b setRetrieveOrder: 
  165. \b0 in the file Controller.m.\
  166. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
  167. \b How to qualify a select operation using DBQualifier\
  168. \b0 See the method 
  169. \b buildSelectQualifier:
  170. \b0  in the file Controller.m\
  171. \b How to insert a new record to a database via the DBFetchGroup object
  172. \b0 \
  173. See the delegate method 
  174. \b fetchGroup:didInsertRecordAt: 
  175. \b0  in the file Controller.m\
  176. \b How to use a DBBinder object to evaluate some arbitrary SQL query connected with the Pubs database:
  177. \b0 \
  178. See the method 
  179. \b evaluateSQL: 
  180. \b0  in the file Controller.m. Note that the DBBinder method evaluateString: only returns properties as results of the query. Instead of an arbitrary SQL query, one can also pass a Sybase stored procedure to the binder.\
  181. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fs28\fc1\cf1 Credit\
  182. \b0\fs24 Thanks to David Stutz for help with the evaluateString: method.
  183. WindowTemplate
  184. iiii***@s@
  185. README
  186. Panell
  187. DBModuleTemplate
  188. DBModule
  189. SybaseDemo
  190. Author
  191. Authors Table
  192. Window
  193. Evaluate SQL Query
  194. Controller
  195. File's Owner
  196. SQLPanel
  197. RMPanel
  198. MyWindow
  199. View1
  200. MainMenu
  201. [47@]
  202. IBControlConnector
  203. IBConnector
  204. copy:
  205. paste:
  206. selectAll:
  207. terminate:
  208. hide:
  209. IBOutletConnector
  210. delegate
  211.     theWindow
  212. qualifierField
  213. select:
  214. changeRetrieveOrder:
  215. DBTableConnector
  216. DBConnector
  217. dbModule
  218. saveChanges:
  219. deleteRecord:
  220. dbTableView
  221. performClick:
  222. orderFront:
  223. textView
  224. authorID
  225. address
  226. state
  227. zipCode
  228. phone
  229. contract
  230. formMatrix
  231. takeValueFrom:
  232. insert:
  233. queryField
  234. evaluateSQL:
  235.