Copyright ©1995 by NeXT Computer, Inc. All Rights Reserved.
Protocols
DBContainers |
Adopted By: | DBRecordList |
Mandatory Methods |
![]() |
Adds anObject to aBinder's container | |
![]() |
||
![]() |
The number of objects in the container | |
![]() |
Removes (but doesn't free) objects in the container | |
![]() |
Frees space formerly allocated to objects in the container | |
![]() |
Returns the index'th object in aBinder's container | |
![]() |
![]() |
Readies the container to move data; returns count |
Optional Methods |
![]() |
Notification when anObject successfully stored in aBinder | |
![]() |
||
![]() |
Notification when anObject could not be stored in aBinder | |
![]() |
DBCursorPositioning |
Adopted By: | DBBinder DBRecordList |
Setting the Position |
![]() |
Sets cursor to container's first record; returns the record | |
![]() |
Sets cursor to container's last record; returns the record | |
![]() |
Sets cursor to container's next record; returns the record | |
![]() |
Sets cursor to container's previous record; returns the record | |
![]() |
Sets cursor to index; returns the index'th record |
Querying the Position |
![]() |
Returns the current index (of objects in the container) |
DBCustomAssociation (informal protocol) |
Category Of: | Object |
Access to the Associated Value |
![]() |
Sets value into the associated data source | |
![]() |
||
![]() |
Puts the value of the associated data source into value | |
![]() |
Notifications to the Associated Display |
![]() |
Notification that the data source has changed | |
![]() |
Notification of a change in selection in the display |
![]() |
Notification that current record has been deleted from the data source |
DBEntities |
Adopted By: | none | |
Incorporates: | DBTypes |
Querying the Object |
![]() |
Returns the name of the entity | |
![]() |
The DBDatabase object that created the entity | |
![]() |
Puts the entity's properties into aList | |
![]() |
Returns the DBProperty named aName |
Comparing the Object |
![]() |
YES if receiver is equivalent to anEntity |
DBExpressionValues |
Adopted By: | DBExpression DBQualifier DBValue |
Methods |
![]() |
Returns the receiver's query-language expression | |
![]() |
YES if evaluation of this expression can be deferred |
DBFormatConversion (informal protocol) |
Category Of: | Object |
![]() |
If implemented, invoked automatically when custom object | |
![]() |
is written to the database | |
![]() |
DBFormatInitialization (informal protocol) |
Category Of: | Object |
![]() |
If implemented, invoked automatically when custom object | |
![]() |
is written to the database | |
![]() |
DBFormatterValidation (informal protocol) |
Category Of: | Object |
Notification Using the Changed Cell's Identifiers |
![]() |
Notification when a formatter has changed a value | |
![]() |
in one of the fields of a display; returns self | |
![]() |
![]() |
:columnIdentifer | Notification when a formatter will change a value | |
sender:sender |
![]() |
:columnIdentifer | Notification when a formatter will change a value, | |
to:aValue | with the proposed new value | |
sender:sender |
Notification Using the Changed Cell's Position |
![]() |
Notification when a formatter has changed a value | |
![]() |
in one of the fields of a display; returns self | |
![]() |
![]() |
at:(unsigned int)position | Notification when a formatter will change a value | |
sender:sender |
![]() |
at:(unsigned int)position | Notification when a formatter will change a value, | |
to:aValue | with the proposed new value | |
sender:sender |
DBFormatterViewEditing |
Category Of: | Object |
Accepting changes |
![]() |
Invoked by editor when user ends editing; | |
![]() |
returns YES unless editing in progress |
DBProperties |
Adopted By: | DBExpression |
Identifying a Property |
![]() |
Name of the property | |
![]() |
Set the name of a custom property; YES if successful | |
![]() |
The entity to which the property belongs |
![]() |
YES if receiver identifies same thing as aProperty |
Querying a Property |
![]() |
The type, as an object that responds to DBTypes protocol | |
![]() |
YES if receive is an attribute or a one-to-one relationship | |
![]() |
YES if the property's data is read only | |
![]() |
YES if the property is a key property in the entity |
![]() |
YES if receiver has same name in same entity as aProperty |
DBTableDataSources (informal protocol) |
Category Of: | Object |
Reporting Table Size |
![]() |
Number of rows in the data source table | |
![]() |
Number of columns in the data source table |
Getting/Setting Data |
![]() |
Puts source value identified by properties rowIdentifier and | |
![]() |
![]() | |
![]() |
||
![]() |
Puts value for property identifier at record aPosition | |
![]() |
![]() | |
![]() |
||
![]() |
Sets source value identified by properties rowIdentifier and | |
![]() |
columnIdentifier to aValue | |
![]() |
||
![]() |
Sets value for property identifier at record aPosition | |
![]() |
![]() | |
![]() |
DBTableValues (informal protocol) |
Category Of: | Object |
Getting a Value from the Table |
![]() |
The item's value as an object | |
![]() |
The item's value as an int | |
![]() |
The item's value as an double | |
![]() |
The item's value as an float | |
![]() |
The item's value as an string |
Setting a Value in the Table |
![]() |
Sets the item's value to anObj | |
![]() |
Sets the item's value to anInt | |
![]() |
Sets the item's value to aDouble | |
![]() |
Sets the item's value to aFloat | |
![]() |
Sets the item's value to aStringt |
DBTableVectors |
Category Of: | Object |
Controlling/Reporting Formatter |
![]() |
The formatter responsible for formatting the vector | |
![]() |
Makes newFormatter the vector's formatter |
Controlling/Reporting Data Link |
![]() |
The identifier for the property that the vector displays | |
![]() |
Makes aDataAttribute the vector's identifier |
Controlling/Reporting Editing |
![]() |
YES if the vector's display is editable | |
![]() |
Permit/prohibit editing of the vector's display |
Controlling/reporting Size |
![]() |
YES if the vector's display can be resized | |
![]() |
Permit/prohibit resizing the vector's display | |
![]() |
YES if automatically resized when the view is resized | |
![]() |
Permit/prohibit automatic resizing | |
![]() |
Width and height of an item in the vector's display | |
![]() |
Sets width and height of an item in the vector's display | |
![]() |
The minimum limit on resizing | |
![]() |
Sets minimum limit on resizing | |
![]() |
The maximum limit on resizing | |
![]() |
Sets maximum limit on resizing |
Controlling/Reporting Title |
![]() |
The title (if row or column headings are shown) | |
![]() |
Makes title the vector's title | |
![]() |
The font for displaying the title | |
![]() |
Makes fontObj the font for displaying the title | |
![]() |
A constant: NX_LEFT/CENTERED/RIGHTALIGNED | |
![]() |
Sets the title alignment to align |
Controlling/Reporting Content Alignment |
![]() |
A constant: NX_LEFT/CENTERED/RIGHTALIGNED | |
![]() |
Sets the content alignment to align |
DBTransactions |
Adopted By: | DBBasicAdaptor : Object |
Basic Transaction Commands |
![]() |
Begins a transaction; YES if successful | |
![]() |
Commits a transaction; YES if successful | |
![]() |
Rolls back a transaction; YES if successful |
DBTypes |
Adopted By: | none |
Querying for Type |
![]() |
"id" /"char *" /"int" /"float" /"double" as appropriate | |
![]() |
What the adaptor returns for the data's type, for example![]() | |
![]() |
Name of the stored data's class (if any) |
Comparing Types |
![]() |
YES if the object conforms to DBEntities protocol | |
![]() |
YES if anObject has the same data type as the receiver |