🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
3 messages
3 total messages Started by Jeff Martin Tue, 25 Aug 1992 17:44
DBKit API and 3.0 MiniExamples
#841
Author: Jeff Martin
Date: Tue, 25 Aug 1992 17:44
53 lines
3056 bytes
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
Re: DBKit API and 3.0 MiniExamples
#873
Author: mai_nguyen
Date: Wed, 26 Aug 1992 18:12
17 lines
1164 bytes
In article <4851@rosie.NeXT.COM> jmartin@next.com (Jeff Martin) writes:
% 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.
%<<Stuff deleted>>

My sincere apologies.. for posting under jmartin@next.com name, because I  
didn't check the preferences of NewsGrazer. The correct address should be  
mai_nguyen@next.com. My apologies to all those who may have replied to that  
address.
 
mai
Re: DBKit API questions
#1052
Author: Jenny Doll
Date: Thu, 03 Sep 1992 05:55
20 lines
1214 bytes
Help DBKit Gods!

I have a field in a Sybase database that is a long int representing date&time
(result of time() function).  Assuming I have an object or C functions that can
convert between this format and human-readable date and time formats, how can I:

(1) Create a DBTable view that will either:
  (A) Display & edit both the date and time in separate columns, or else 
      if I can't split 1 Sybase field into 2 DBKit attributes, then I'd 
      settle for:
  (B) Display & edit the date portion of the field

(2) Use 1 or 2 form objects to edit the human readable date and time

Obviously the data format needs to be converted from a longint to strings when
retrieving data from the database and back to a longint when putting the data
back.


Thanks, ...Michael Brill
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads