This is Proto.h in view mode; [Download] [Up]
/* Generated by Interface Builder */ /* -------------------------------------------------------- A proto is an encapsulation of the data for a file type A proto has the fields string typename; string pathname; string editor; [OPEN_EDITOR | OPEN_WS | DONT_OPEN] defaultopen; The methods below basically return or set these fields. -------------------------------------------------------- */ #import <objc/Object.h> #import <string.h> #import <stdio.h> #import <sys/param.h> // The length of typename, prototype file's (relative) name and editor #define NAME_LENGTH 256 // Strings for the defaults file. #define EDITOR_STR "editor" #define WS_STR "workspace" #define DONT_STR "dont" #define NULL_EDITOR "/dev/null" // The possible types for the opening default. #define OPEN_EDITOR 0 #define OPEN_WS 1 #define DONT_OPEN 2 @interface Proto:Object { char typename[NAME_LENGTH]; char pathname[NAME_LENGTH]; char editor[NAME_LENGTH]; int defaultopen; } + new:(char *)atypename:(char *)apathname:(char *)aneditor:(int)open; // Create a new proto by reading data from file. + read:(FILE *)fp; - (char *)typename; - setTypename:(char *)str; - (char *)pathname; - setPathname:(char *)str; - (char *)editor; - setEditor:(char *)str; - (int)defaultopen; - setDefaultopen:(int)def; // The extension of the prototype file. Returns "" if there is no extension. - (char *)extension; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.