ftp.nice.ch/peanuts/GeneralData/Documents/dsp/DSPTutorial.tar.gz#/DSPTutorial/Examples/07_IBulder_and_Sound/Controller.m

This is Controller.m in view mode; [Download] [Up]

/* Generated by Interface Builder */

#import "Controller.h"

@implementation Controller

- setEffectSix:anObject
{
    effectSix = anObject;
    return self;
}

- setEffectFour:anObject
{
    effectFour = anObject;
    return self;
}

- setEffectTwo:anObject
{
    effectTwo = anObject;
    return self;
}

- setEffectSeven:anObject
{
    effectSeven = anObject;
    return self;
}

- setEffectFive:anObject
{
    effectFive = anObject;
    return self;
}

- setEffectThree:anObject
{
    effectThree = anObject;
    return self;
}

- setEffectNine:anObject
{
    effectNine = anObject;
    return self;
}

- setEffectOne:anObject
{
    effectOne = anObject;
    return self;
}

- setEffectEight:anObject
{
    effectEight = anObject;
    return self;
}

- setEffectZero:anObject
{
    effectZero = anObject;
    currentEffectNum = 0;
    currentEffect = anObject;
    return self;
}

- effectChange:sender
{
int tag;

    tag = [[sender selectedCell] tag];
    if(tag == currentEffectNum) 
    {
	 [currentEffect show] ;
	 return self;
    }
    [currentEffect close];
    switch(tag)
    {
	case 0 : [effectZero open] ; currentEffectNum = 0 ; 
	currentEffect = effectZero ; break ;
	case 1 : [effectOne open] ; currentEffectNum = 1 ; 
	currentEffect = effectOne ; break ;
	case 2 : [effectTwo open] ; currentEffectNum = 2 ;  
	currentEffect = effectTwo ; break ;
	case 3 : [effectThree open] ; currentEffectNum = 3 ;  
	currentEffect = effectThree ; break ;
	case 4 : [effectFour open] ; currentEffectNum = 4 ;  
	currentEffect = effectFour ; break ;
	case 5 : [effectFive open] ; currentEffectNum = 5 ;  
	currentEffect = effectFive ; break ;
	case 6 : [effectSix open] ; currentEffectNum = 6 ;  
	currentEffect = effectSix ; break ;
	case 7 : [effectSeven open] ; currentEffectNum = 7 ;  
	currentEffect = effectSeven ; break ;
	case 8 : [effectEight open] ; currentEffectNum = 8 ;  
	currentEffect = effectEight ; break ;
	case 9 : [effectNine open] ; currentEffectNum = 9 ;  
	currentEffect = effectNine ; break ;
    }
    return self;
}


@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.