|
|
Sample Programs from NeXSTEP 3.3
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f2\fmodern Ohlfs;}
\paperw10800
\paperh11920
\margl120
\margr100
{\colortbl;\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 RadioMatrixAssociation
\b0\fs24 \
by Craig Federighi, EO Development Team\
and Mai Nguyen, NeXT Developer Support\
\
\b\fs28 Overview
\b0\fs24 \
\
This is an example of a custom association. This example uses a custom datasource, but it can be easily adapted to use a real database datasource.\
\fc1\cf1 \
\b\fs28 Program Organization
\b0\fs24 \
\
\b User Interface\
\b0 \
By selecting a new value in the radio button matrix, the choice is automatically updated in the tableview, and fed to the data source. Upon a new fetch, you can verify that the tableview reflects the last selected choices.\
\
\b Major Classes in the Application
\b0 \
\
\pard\tx2880\tx3300\tx3340\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-3280\li3280\fc1\cf1 AppController A cover class to initialize the data source of person objects and\
handle the controller fetch operations.\
\
DataSource A custom data source class (from SHLExamples).
\pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
\
Person A simple NSObject class to represent a person's data
\pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
\pard\tx2880\tx3300\tx3340\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-3280\li3280\fc1\cf1 \
RadioAssociation A custom association for matrices of radio buttons.
\pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.