|
|
1.1 ! root 1: {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f2\fmodern Ohlfs;} ! 2: \paperw10800 ! 3: \paperh11920 ! 4: \margl120 ! 5: \margr100 ! 6: {\colortbl;\red0\green0\blue0;} ! 7: \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 RadioMatrixAssociation ! 8: \b0\fs24 \ ! 9: by Craig Federighi, EO Development Team\ ! 10: and Mai Nguyen, NeXT Developer Support\ ! 11: \ ! 12: ! 13: \b\fs28 Overview ! 14: \b0\fs24 \ ! 15: \ ! 16: 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.\ ! 17: ! 18: \fc1\cf1 \ ! 19: ! 20: \b\fs28 Program Organization ! 21: \b0\fs24 \ ! 22: \ ! 23: ! 24: \b User Interface\ ! 25: ! 26: \b0 \ ! 27: 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.\ ! 28: \ ! 29: ! 30: \b Major Classes in the Application ! 31: \b0 \ ! 32: \ ! 33: ! 34: \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\ ! 35: handle the controller fetch operations.\ ! 36: \ ! 37: DataSource A custom data source class (from SHLExamples). ! 38: \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \ ! 39: \ ! 40: Person A simple NSObject class to represent a person's data ! 41: \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \ ! 42: ! 43: \pard\tx2880\tx3300\tx3340\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-3280\li3280\fc1\cf1 \ ! 44: RadioAssociation A custom association for matrices of radio buttons. ! 45: \pard\tx560\tx1120\tx2060\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fi-2060\li2060\fc1\cf1 \ ! 46: ! 47: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.