Although the headers for a methods file can contain all the things that ordinary headers do, they are mostly given over to listing objects and method prototypes for their associated file. If the Interface Builder has been used without the benefit of a header file, there is an option called ``unparsing'' which will create one. Conversely, if the text of the header file has been changed, the .nib file can be updated by using ``unparse.''
It is worth noting that there is no convenient way to supply several arguments to a method which is going to be connected graphically in the Interface Builder. But methods are not supposed to look at each other's data anyway; they should only transmit the data or pointers to the data in response to a polite request. To know who made a request, and thus to whom to send the reply, a method can volunteer its own name which the called program can recognize as an argument called :sender, at which time it knows how to ask for further services or data. That is why :sender is the only argument of most of the methods in the prototype list, and certainly for those which are going to be connected using Interface Builder .
#import <appkit/appkit.h> @interface RECView:View { id bigView; id bigWindow; id RECOButn; id RECLine; id RECMatrix; id RECPanel; id sourceView; id sourceWindow; id phaseView; id phaseWindow; id solutionView; id solutionWindow; id controlWindow; id browser; id comment; id bigBox; id extBox; id intBox; id lilBox; id execWin; id RECValue; id menuCopy; id menuPrint; char *filename; char **filenames; } - ascii:sender; - recMatrix:sender; - loadRECPanel:sender; - loadRECSource:sender; - nhul:sender; - recompile:sender; - run:sender; - runPhase:sender; - runSolution:sender; - runView:sender; - runRECLine:sender; - runRECOffLine:sender; - useRECLine:sender; - setOption:sender; - smartPrintBigWin:sender; - openBigWin:sender; - close:sender; - open:sender; - setFilename:(const char *)aFilename; - save:sender; - saveAs:sender; - copyREC:sender; - copyAndRunREC:sender; - copySomeView:theView; @end /* end RECView.h */