ftp.nice.ch/pub/next/developer/objc/appkit/Briefcase.2.0.N.bs.tar.gz#/Version2.0/MultDoc.h

This is MultDoc.h in view mode; [Download] [Up]

#import <appkit/Responder.h>

/* Version 0.9b			Apr-19-92		First Public Release	*/
/* Version 0.95b		Apr-29-92		Multiple Save Types		*/
/* Version 1.00b		Jan-19-93		Updated for 3.0			*/

@interface MultDoc : Responder
{
    id 		view;				/* the document's View */
    id 		window;				/* the window the View is in */
    id 		printInfo;			/* Print Margins etc. */
    char 	*name;				/* the name of the document */
    char 	*directory;			/* the directory it is in */
    BOOL 	haveSavedDocument;	/* whether document has associated disk file */
	BOOL	dirty;				/* Whether or not the document needs saving */
	BOOL	empty;				/* is the document empty? */
}

/* Factory methods */

+ initialize;
+ setExtension:(const char *)newExtension;
+ (const char *)extension;
+ setDefault:(const char *)newDefault;
+ (const char *)default;

+ setAppDelegate:anObject;
+ appDelegate;

+ (NXZone *)newZone;

/* Factory Creation Methods */

+ new;
+ newFromZone:(NXZone *)zone;
+ newFromFile:(const char *)file;
+ newFromPasteboard:pasteboard;
- instanceAwake;
- setUpNib;
 
- free;

/* Public methods */

- view;
- printInfo;
- (BOOL)isEmpty;
- setEmpty:(BOOL)flag;
- (BOOL)hasSavedDocument;
- setSavedDocument:(BOOL)flag;
- (BOOL)needsSaving;
- dirty:(BOOL)flag;

- changeLayout:sender;

/* Target/Action methods */

- save:sender;
- saveAs:sender;
- revertToSaved:sender;

/* Document name and file handling methods */

- (const char *)fileName;
- (const char *)directory;
- (const char *)name;
- setName:(const char *)name andDirectory:(const char *)directory;
- setName:(const char *)name;
- save;

/* Window delegate methods */

- windowWillClose:sender;
- windowDidBecomeMain:sender;
- windowWillMiniaturize:sender toMiniwindow:counterpart;

/* Text delegate methods */

- textDidGetKeys:sender isEmpty:(BOOL)flag;

/* Menu command validation method */

- (BOOL)validateCommand:menuCell;

@end

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