home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5836 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!seismo!lll-winken!iggy.GW.Vitalink.COM!nocsun.NOC.Vitalink.COM!wetware!ditka!ntg!rosie!next.com
  2. From: jmartin@next.com (Jeff Martin)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: DBKit API and 3.0 MiniExamples
  5. Keywords: DBKit, MiniExamples
  6. Message-ID: <4851@rosie.NeXT.COM>
  7. Date: 25 Aug 92 17:44:45 GMT
  8. Sender: news@NeXT.COM
  9. Reply-To: jmartin@next.com (Jeff Martin)
  10. Lines: 53
  11.  
  12. Hi:
  13. Between 3.0 PR2 and the final 3.0 Release, there was a minor DBKit API change  
  14. that didn't make into the online technical documentation and one DBKit example  
  15. in the release. If you are interested, you can get the new AddressBook example  
  16. via anonymous ftp (file transfer protocol) from one of the following Internet  
  17. archive servers. Note that they may still be in /pub/next/submissions.
  18.        ________________________________________________________
  19.          hostname       MiniExamples-directory
  20.        ________________________________________________________
  21.     
  22.            cs.orst.edu         pub/next/documents/NeXTanswers/MiniExample
  23.                 (may still be in pub/next/submissions)
  24.            sonata.cc.purdue.edu    pub/next/docs/MiniExamples (may still be in
  25.                 pub/next/submissions)
  26.     
  27.   
  28. MiniExamples are small programming examples provided by NeXT Developer Support.   
  29. Each one contains its own README file.  
  30.  
  31. The August 92 Release contains 2 miniexamples for the 3.0 NeXTStep Release.
  32.  
  33. The AddressBook example shows you some simple usage of the DBKit Access Layer  
  34. such as how to get connected to a SYBASE server, and how to do simple  
  35. operations such as select, update, and delete. This example supersedes the same  
  36. example that comes with the 3.0 Release under  
  37. /NextDeveloper/Examples/DatabaseKit that doesn't work properly.
  38. Please note that the on-line documentation for the method saveModifications:  
  39. for  DBRecordList has some errors.  A return value 0 should mean success. Here  
  40. are the corrections for DBRecordList. 
  41. The possible return values from saveModifications: are as follows:
  42. Value    Reason
  43. 0    The save operation was successful.
  44. 1    The save completed but not all records were saved.  This happens if  
  45. errors are encountered but the delegate requests that the save proceeds anyway.
  46. DB_NoIndex    Either the DBRecordList isn't ready (its status is DB_NotReady  
  47. or DB_NoRecordKey), or one or  more records in the database have changed since  
  48. they were fetched and the delegate hasn't forced the modifications to be saved.   
  49. (See recordStream:willFailForReason:     (DBRecordStream))
  50.  
  51.  
  52. The TextORama example is a 2.0 example adapted to 3.0. It illustrates two  
  53. things:
  54.   How to create a TextField which supports one or more of these features:
  55. - Restricting text length (both when typing and pasting).
  56. - Autojumping to another TextField when maximum length is reached.
  57. - Interpreting a carriage return literally rather than as an indication to end  
  58. editing.
  59.   How to implement emacs key binding support for the Text object.
  60.  
  61. Enjoy!
  62.  
  63. mai 
  64. Developer Support
  65.