home *** CD-ROM | disk | FTP | other *** search
-
- id componentName;
-
- id componentChoices;
- id orientationChoices;
-
- id selectedComponent;
- id selectedOrientation;
-
- - awake
- {
- componentChoices = @("Example", "Component");
- orientationChoices = @("Rows", "Columns");
- if (!selectedComponent) {
- selectedComponent = @"Example";
- selectedOrientation = @"Rows";
- }
- }
-
- - sourceAsRows
- {
- if ([selectedOrientation isEqualToString:@"Rows"]) {
- return YES;
- }
- return NO;
- }
-
- - selectedComponentName
- {
- if ([selectedComponent isEqualToString:@"Example"]) {
- return [NSString stringWithFormat:@"%@Ex", componentName];
- }
- return componentName;
- }
-
- - showSource
- {
- id aSourceSplitView = [WOApp pageWithName:@"SourceSplitView"];
- [aSourceSplitView setComponentName:[self selectedComponentName]
- sourceAsRows:[self sourceAsRows]];
- return aSourceSplitView;
- }
-
- // THIS IS ONLY HERE ON A TEMPORARY BASIS UNTIL AFTER BETA 1.
- - defeatDisplay
- {
- id aBundle = [NSBundle bundleWithPath:
- @"/NextLibrary/WebObjects/Executables"];
-
- id aPath = [aBundle pathForResource:@"DefaultApp-Beta1" ofType:@""];
- if (aPath) {
- return nil;
- }
-
- aPath = [aBundle pathForResource:@"EOFDefaultApp-Beta1" ofType:@""];
- if (aPath) {
- return nil;
- }
-
- return YES;
- }
-