|
|
1.1 ! root 1: #import <objc/Object.h> ! 2: #import <streams/streams.h> ! 3: ! 4: @interface YapDocument:Object { ! 5: id document; ! 6: char *name; ! 7: } ! 8: ! 9: + new; ! 10: + newFromFile:(const char *)fileName; ! 11: - initializePrintInfo; ! 12: ! 13: // Connect to target/action methods ! 14: ! 15: - save:sender; ! 16: - saveAs:sender; ! 17: - execute:sender; ! 18: - print:sender; ! 19: ! 20: // Other methods ! 21: ! 22: - setName:(const char *)title; ! 23: - (const char *)name; ! 24: - (BOOL)saveDocument:(const char *)fileName; ! 25: - (BOOL)closeDocument:(const char *)message andWindow:(BOOL)flag; ! 26: - (BOOL)needsSaving; ! 27: ! 28: // Return the document in the specified window; nil if the ! 29: // window contains no Yap document. ! 30: ! 31: + documentForWindow:window; ! 32: ! 33: // The following delegate method is used for detecting when the user ! 34: // edits the text. ! 35: ! 36: - text:text isEmpty:(BOOL)empty; ! 37: ! 38: // ...and the following when he/she changes the font. ! 39: ! 40: - textWillConvert:textObject fromFont:oldFont toFont:newFont; ! 41: ! 42: // YapDocuments have their own zones; the following two methods allow ! 43: // reuse of zones. ! 44: ! 45: + (NXZone *)newZone; ! 46: + (void)reuseZone:(NXZone *)aZone; ! 47: ! 48: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.