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