This is YapDocument.h in view mode; [Download] [Up]
#import <objc/Object.h> #import <streams/streams.h> @interface YapDocument:Object { id document; char *name; } + newFromStream:(NXStream *)stream name:(const char *)fileName; + new; + newFromFile:(const char *)fileName; - initializePrintInfo; // Connect to target/action methods - save:sender; - saveAs:sender; - execute:sender; - print:sender; // Other methods - setName:(const char *)title; - (const char *)name; - (BOOL)saveDocument:(const char *)fileName; - (BOOL)closeDocument:(const char *)message andWindow:(BOOL)flag; - (BOOL)needsSaving; // Return the document in the specified window; nil if the // window contains no Yap document. + documentForWindow:window; // The following delegate method is used for detecting when the user // edits the text. - text:text isEmpty:(BOOL)empty; // ...and the following when he/she changes the font. - textWillConvert:textObject fromFont:oldFont toFont:newFont; // YapDocuments have their own zones; the following two methods allow // reuse of zones. + (NXZone *)newZone; + (void)reuseZone:(NXZone *)aZone; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.