home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DatabaseKit / PubsDemo / English.lproj / PubsDemo.nib / data.nib (.txt) < prev   
NeXT TypedStream Data  |  1992-07-17  |  11KB  |  237 lines

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