home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import "Controller.h"
- #import "ObserveDispatch.h"
-
- #import <appkit/Application.h>
-
- @implementation Controller
-
- - init
- {
- [super init];
- [NXApp setDelegate:self];
-
- return self;
- }
-
- /*
- Method: appDidInit:
- By the time we get here, we can assume that all the nib instantiation
- stuff has happened so that we can safely assume that all the instance
- variables have been set.
- */
-
- - appDidInit:sender
- {
- printf("AppDidInit:\n");
-
- // The following three lines make sure that setIntValue: will be called
- // on each of the observing cells whenever the main cell takes a new
- // int value from the slider.
- [mainCell addObserver:cell1 forAction:"takeIntValueFrom:"];
- [mainCell addObserver:cell2 forAction:"takeIntValueFrom:"];
- [mainCell addObserver:cell3 forAction:"takeIntValueFrom:"];
- /*
- [mainCell addObserver:cell1 forAction:"setIntValue:"];
- [mainCell addObserver:cell2 forAction:"setIntValue:"];
- [mainCell addObserver:cell3 forAction:"setIntValue:"];
- */
- return self;
- }
-
- @end
-