This is ToolAndInspectorProtocols.h in view mode; [Download] [Up]
// ToolAndInspectorProtocols.h
// By Charles G. Fleming, Educational Computing Services, Allegheny College.
// Copyright 1993, Allegheny College.
// You may freely copy, distribute and reuse this code.
// Allegheny College and the author disclaim any warranty of any kind,
// expressed or implied, as to its fitness for any particular use.
// Workbench tool protocol.
@protocol WBTool
- evaluate:sender;
- (char **)requiredConnectors;
- inspector;
- setInputText:text;
- setOutputText:text;
- setOutputView:view;
@end
// Workbench tool inspector protocol.
@protocol WBToolInspector
- (char *)inspectorTitle;
- window;
- revert:sender;
- ok:sender;
@end
// MathConnector definitions.
int MLReturnValue;
enum resultTypes {ERROR, INTEGER, REAL, INTEGERLIST, REALLIST, STRING,
REALMATRIX, DEFINITION, GRAPHICS};
union returnValue
{
int intVal;
double doubleVal;
char * stringVal;
};
typedef struct MLink *MLINK;
@interface MathConnector:Object
{
MLINK linkPointer;
}
- init;
- (MLINK)initMathConnectionOnHost:(char *)host linkMode:(char *)mode
linkName:(char *)name linkProtocol:(char *)protocol;
- (MLINK)link;
- (BOOL)evaluateExpression:(char *)string resultType:(int)type
result:(void**)result;
- (BOOL)evaluateMatrixExpression:(char *)string resultType:(int)type
result:(void**)result rows:(int *)rows cols:(int *)cols;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.